Sublime Text + TypeScript + React: How to ignore errors in type files in error list
I have installed Sublime Text 3, Microsoft's TypScript Plugin and created an application with react-create-app. Then I open the application folder with Sublime > Sublime Text: Show error list.
Then I get errors from some React stuff:
/.../programming/typescript/my-app/node_modules/@types/react/index.d.ts [446 errors]
(72, 26) ',' expected.
(72, 28) '>' expected.
(72, 30) ';' expected.
(72, 32) Expression expected.
(72, 52) '(' expected.
(72, 75) '(' expected.
(274, 27) ',' expected.
(274, 29) '>' expected.
(274, 31) Declaration or statement expected.
(274, 41) Expression expected.
(300, 27) ',' expected.
I can't find a way for TSLint(?) to only check my source files. There seems to be a way to exclude files from TSLint when using the CLI with --exclude flag. But I don't know how to do that with Sublime Text.
Posted Sep 28, 2017, 6:42 AM UTC
24