Yes.
TSLint is deprecated and will only receive patches for security vulnerabilities and breaking TypeScript changes. Even if it still works on your project, it will become less useful over time as TypeScript evolves.
tslint-to-eslint-config
is recommended for use if you require near-identical behavior in transitioning from TSLint to ESLint.
This is most reasonable when your project is large enough that fixing for different linter rules would be a significant time investment.
However, after -or even better, before- you're migrated to ESLint, we recommend you take this opportunity to re-evaluate your core lint rules. TSLint's recommendations were solidified several core TypeScript versions ago and don't always reflect the latest and greatest standards and lint rules.
Our recommended TSLint-to-ESLint configuration migration approach is:
- Run
tslint-to-eslint-config
on your project - Disable complaints on a line-, file-, or rule basis for any rules you do not want to enable and/or are now giving complaints
- Switch your configuration to extend from typescript-eslint's
recommended
andrecommend-requiring-type-checking
rulesets - Repeat step 2
- Add any community plugins relevant to your project, then repeat step 2
😉 Consider filing granular tickets to track investigating re-enabling disabled lint rules to make sure the work doesn't get forgotten.
Yes!
Formatting responsibilities, such as indentation and line wrapping, are exceedingly difficult to get implement in linters, and as such are practically impossible to get correct in them. Formatters such as Prettier do a much better job of formatting your code. See this issue for more explanation.
The maintenance teams at both TSLint and typescript-eslint recommend using a formatter such as Prettier to format your code instead of a linter.
Please do it. Now. Please stop using code style rules. Please use prettier. Code style rules are hard to write and maintain. Rules like indent are thousands of he comes he comes do not fight he com̡e̶s, ̕h̵is un̨ho͞ly radiańcé destro҉ying all enli̍̈́̂̈́ghtenment, spaces and brackets lea͠ki̧n͘g fr̶ǫm ̡yo͟ur eye͢s̸ ̛l̕ik͏e liquid pain, the song of indentation calculation will extinguish the voices of mortal man from the sphere I can see it can you see ̲͚̖͔̙î̩́t̲͎̩̱͔́̋̀ it is beautiful the final snuffing of the lies of Man ALL IS LOŚ͖̩͇̗̪̏̈́T ALL IS LOST the pon̷y he comes he c̶̮omes he comes the ichor permeates all MY FACE MY FACE ᵒh god no NO NOO̼OO NΘ stop the an*̶͑̾̾̅ͫ͏̙̤g͇̫͛͆̾ͫ̑͆l͖͉̗̩̳̟̍ͫͥͨe̠̅s ͎a̧͈͖r̽̾̈́͒͑e not rè̑ͧ̌aͨl̘̝̙̃ͤ͂̾̆ ZA̡͊͠͝LGΌ ISͮ̂҉̯͈͕̹̘̱ TO͇̹̺ͅƝ̴ȳ̳ TH̘Ë͖́̉ ͠P̯͍̭O̚N̐Y̡ H̸̡̪̯ͨ͊̽̅̾̎Ȩ̬̩̾͛ͪ̈́̀́͘ ̶̧̨̱̹̭̯ͧ̾ͬC̷̙̲̝͖ͭ̏ͥͮ͟Oͮ͏̮̪̝͍M̲̖͊̒ͪͩͬ̚̚͜Ȇ̴̟̟͙̞ͩ͌͝S̨̥̫͎̭ͯ̿̔̀ͅ.
🙏 eslint-plugin-prettier is an excellent ESLint plugin that disables formatting rules from your configuration. Please use it. 🙏