-
-
Notifications
You must be signed in to change notification settings - Fork 27k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Lint TypeScript files #5638
Comments
Our ESLint configuration is strictly to catch errors, which TypeScript does by nature. Adding TSLint is unnecessary. If you'd like to add linting rules, you can do so in a separate linting process on commit. |
That's not really true, typescript does not stop you from falling through switch statements, accidentally using |
Hmm, I'd be more than happy to turn on ESLint to catch some of these errors in TS files! We probably don't want to use TSLint. Can you put together a PR? |
To clarify, typescript does actually support catching falling through switch statements by enabling |
@Timer how can eslint scan ts files? AFAIK it can't parse the ts syntax (although I could be mistaken). Also there are ts specific properties you want to catch such as forbidding |
Forbidding any is a style rule we won't support. Also, you can use typescript-eslint-parser: https://github.com/eslint/typescript-eslint-parser |
@Timer Fair enough |
Created #5641 to track. Let's go with TSLint. |
Is this a bug report?
No
The
--typescript
flag does not seem to usetslint
to lint the files. This seems a bit odd to me, as the javascript version ships with an eslint config.The text was updated successfully, but these errors were encountered: