I searched for many articles about this question. I couldn't find any article related to that. Can some tell me what are the cons of Eslint over TsLint. Why do we have to move to ESLint?
The biggest practical difference between TSLint and ESLint is the format of their configuration file, which stores the rules the linter uses to validate your code. We'll also need to update Angular to use ESLint when we run “ng lint”. Fortunately, angular-eslint's schematic handles both of these changes!
According to the StackShare community, ESLint has a broader approval, being mentioned in 543 company stacks & 594 developers stacks; compared to TSLint, which is listed in 22 company stacks and 30 developer stacks. Scenario: I want to integrate Prettier in our code base which is currently using ESLint (for . js and .
TSLint is deprecated and you should use typescript-eslint instead.
Edit 1 ( NOV 2021 )
Currently, I am using EsLint
in TypeScript, and I loved it. I suggest do not use TsLint
because it's deprecated and EsLint
have more linting features than TsLint
.
Original
TsLint
is spacially made for TypeScript
and EsLint
can use in both side JavaScript
and TypeScript
but its standard way to use TsLint
in TypeScript
because its have better linting and type checking then EsLint
in TypeScript
There is no compression here, props and cons are checked when you are comparing any similar things but here both are different
check that article: https://codeburst.io/from-eslint-to-tslint-and-back-again-bf259c2e7437
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With