Make your TypeScript compiler smarter!
summary
A small linter plugin is built that extends the TypeScript Language Service by overriding language-service methods, walks the AST and enforces the concrete rule that any variable name starting with "is" must have a boolean value, reporting errors when assigned non-boolean expressions. It runs inside the TS server, installs via npm/yarn/mpn link and plugs into tsconfig plugins, works in VS Code/Atom/Vim because it runs at compiler level, and offers hooks for quick fixes; source on GitHub.
AI-written summary · about
chapters (7)
- 0:00Intro
- 0:20TypeScript is awesome
- 1:02Language Service
- 1:30TS Server
- 2:03Abstract syntax tree
- 2:50Recursive debugging
- 3:23Result
related talks
24mTypeScript for JavaScripties
24mStatic Analysis: Don't Fear the Linter!
19mYou don't know TS: often unknown parts of TypeScript
57mTypeScript : More than just another JS transpiler
11mMatt Bierner - SeattleJS Conference 2017
24mTypeScript Static Analysis Hidden Gems
36mStarting TypeScript Leaving JavaScript as JS
24mStatic Analysis and Source Code Manipulation in TypeScript
