@cspell/parser-typescript-tree-sitter
v1.2.0
Published
A TypeScript parser plugin for cspell using tree-sitter's native Node.js bindings.
Maintainers
Readme
@cspell/parser-typescript-tree-sitter
A full-fledged JavaScript, JSX, TypeScript, and TSX parser for cspell. It gives you control over which parts of your code get spell checked, from comments and strings to function and variable names. It also lets you skip module imports and other code that isn't under your control.
It uses tree-sitter's native Node.js bindings. To avoid a native addon, use
@cspell/parser-typescript, which runs on
WebAssembly.
Install
npm install --save-dev @cspell/parser-typescript-tree-sitterUsage
The quickest way to get started is to import the recommended settings, which registers the plugin and selects its parsers for every supported file type:
cspell.config.jsonc
