Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between ESLint and TSLint [closed]

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?

like image 415
mohammed fahimullah Avatar asked Jan 04 '21 07:01

mohammed fahimullah


People also ask

Is ESLint the same as TSLint?

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!

Which is best ESLint or TSLint?

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 .

Should I use TSLint?

TSLint is deprecated and you should use typescript-eslint instead.


1 Answers

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

like image 197
Nisharg Shah Avatar answered Sep 19 '22 13:09

Nisharg Shah