New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plugin doesn't check .ts and .tsx files out of box? #355
Comments
Hi, specifying extension is currently not possible in configs, see eslint/eslint#10828 For the time being, you need to specify extensions with |
Thank you! |
As @ldrick said, this is a limitation of eslint. Our parser essentially only does one thing - adds support for parsing files which include typescript language features. |
What about the browser extension, is there a way to have it enabled and show error on ts/tsx files? |
We only parse and lint the files that we are given by eslint. |
My ESLint configured for project with
@typescript-eslint/eslint-plugin
(installed asdevDependency
), enabled in plugin section doesn't check my.ts
and.tsx
project files, but works on.js
files.Maybe I should use
--ext .js,.ts,.tsx
in the lint script? Is not plugin also for this?ESLint config file
Part of package.json file.
Please take a look at the below screenshot. We can see just error for
test2.js
file, but not for the sametest2.ts
file (event my IDE doesn't "highlight" error, but I suppose it may be their problem).Expected Result
Listed errors also for
test1.ts
file.Actual Result
No errors for
test1.ts
file.Versions
@typescript-eslint/eslint-plugin
1.4.2
@typescript-eslint/parser
1.4.2
TypeScript
3.3.3333
ESLint
5.3.0
eslint-config-airbnb
17.1.0
eslint-plugin-import
2.16.0
eslint-plugin-jsx-a11y
6.2.1
eslint-plugin-react
7.12.4
node
10.5.0
npm
6.8.0
The text was updated successfully, but these errors were encountered: