-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
Migrate the repo to ESLint #30553
Comments
Hi! I have a new guide on setting up ESLint with TypeScript: https://blog.matterhorn.dev/posts/learn-typescript-linting-part-1/ I'd be happy to try and set it up for y'all or someone else can do it themselves. Let me know! |
@Ethan-Arrowood this is a really helpful guide, thank you! |
You're welcome @jessetrinity If anything is unclear please let me know. I'm happy to help |
I have opened a PR to add my resource to the tutorial section of the handbook: microsoft/TypeScript-Handbook#1046 If my work is better linked somewhere else please let me know; I'd love for my work to help as many TypeScript developers as possible |
@Ethan-Arrowood Nice guide! Would be great to get it actually in the handbook, If you supplied the .md files rather than a link I bet the powers that be would be even more likely to include it :) Have you checked out the
It works well after other JS rulesets with things that should be overridden. Here is my current config that seems to be working well:
I noticed in your guide you didn't mention https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin
If you look at the main grid of rules the ones that require types are marked with a little cloud? icon. Sorry if I am mentioning something I missed in your guide, I only had time to read them quickly. Have you told the |
Hi @DanielRosenwasser is the I definitely did miss the Thank you for the insight 😄 My only issue with submitting my whole post to the handbook is that the guide is fairly long and I don't know if users would want to read so much stuff. Additionally, as things change or need updating I'd like to only maintain it in one place (i.e. my blog). Just like with the changes you just recommended it would be challenging to have to maintain updates across multiple different sources. |
Hi @Ethan-Arrowood and @David-Else |
- Remove tslint and its configurations - Add eslint and set default configurations Palantir [announced][1] that it will deprecate TSLint in favour of typescript-eslint. The TypeScript team [announced][2] that themselves will start using typescript-eslint instead of tslint. [1]: https://medium.com/palantir/tslint-in-2019-1a144c2317a9 [2]: microsoft/TypeScript#30553
- Remove tslint and its configurations - Add eslint and set default configurations Palantir [announced][1] that it will deprecate TSLint in favour of typescript-eslint. The TypeScript team [announced][2] that themselves will start using typescript-eslint instead of tslint. [1]: https://medium.com/palantir/tslint-in-2019-1a144c2317a9 [2]: microsoft/TypeScript#30553
Just out of curiosity, was this change benchmarked? I know I recently attempted to migrate from TSLint to ESLint and found it was significantly slower on a fairly large codebase (~40k LOC) |
Yes - we found comparable lint times before and after the migration (generally, ~35 seconds before, ~45 seconds after). However, when using the |
@kdawgwilk I had a similar issue, but even with a small codebase. if you're using webpack https://github.com/TypeStrong/fork-ts-checker-webpack-plugin#readme can save you lots of time aswell as these webpack tips. Also make sure you exclude node_modules as well as build and non-typescript files from your |
Since we've been working on bringing linting parity with TSLint to ESLint, we need to start using it ourselves. This issue tracks exactly that.
The text was updated successfully, but these errors were encountered: