@ttsc/lint - I made 20x faster TS Lint by building it into typescript-go — one compile catches both
The article introduces @ttsc/lint, a tool that integrates linting into the TypeScript compilation process, eliminating the need for separate type checking and linting steps. Built on typescript-go, a next-generation TypeScript compiler written in Go, it reuses the compiler's AST to achieve up to 20x faster performance. The tool reports lint violations as standard compile errors, enabling CI systems to catch both type and style issues in one pass.
- ▪@ttsc/lint combines TypeScript type checking and ESLint-style linting into a single compilation step.
- ▪It is built on typescript-go, a Go-based TypeScript compiler that is approximately 10x faster than the legacy JavaScript version.
- ▪Lint rules such as 'no-var' and 'prefer-const' are reported as standard TypeScript-style errors with TS error codes.
- ▪The tool is compatible with TypeScript v6 and requires no migration, working with commands like ttsc --noEmit.
- ▪Lint violations can be set to 'error', 'warning', or 'off', allowing flexible enforcement levels.
Opening excerpt (first ~120 words) tap to expand
try { if(localStorage) { let currentUser = localStorage.getItem('current_user'); if (currentUser) { currentUser = JSON.parse(currentUser); if (currentUser.id === 901175) { document.getElementById('article-show-container').classList.add('current-user-is-article-author'); } } } } catch (e) { console.error(e); } Jeongho Nam Posted on May 1 @ttsc/lint - I made 20x faster TS Lint by building it into typescript-go — one compile catches both #typescript #opensource #programming #eslint Typia (11 Part Series) 1 I made 1,000x faster TypeScript Validator Library 2 I made 10x faster JSON.stringify() functions, even type safe ... 7 more parts...
…
Excerpt limited to ~120 words for fair-use compliance. The full article is at DEV.to (Top).