tsetse checker from https://github.com/bazelbuild/rules_typescript/tree/master/internal/tsetse
-
Add tsetse as a dev dependency:
yarn add tsetse --dev
-
Use workspace version of TypeScript
-
Add the plugin via plugins compiler option in the tsconfig. If you are using tsetse as a package then the path to the plugin might look like this:
{ "compilerOptions": { "plugins": [ { "name": "tsetse" } ] } }
-
Restart the editor to reload TS initialization features.
Make sure the LSP is using (requiring) the same workspace version of TS used by the IDE.