7 votes

TSLint will be deprecated by the end of 2020 in favor of ESLint

2 comments

  1. beenotung
    Link
    tslint is deprecated and stopped accepting PRs (except security fixes). People behind suggest to switch to eslint. There is a tool tslint-to-eslint-config that try to help on the migration but...

    tslint is deprecated and stopped accepting PRs (except security fixes).
    People behind suggest to switch to eslint.

    There is a tool tslint-to-eslint-config that try to help on the migration but seems some edges. For example indentation on generic type is not behaving as expected. The fundamental issue comes from the limitation in eslint.

    Currently typescript+eslint works by converting typescript AST to javascript AST, then pass to eslint for linting and auto fixing. However some rules in tslint are hard / impossible to be implemented by eslint because the AST used by eslint does not have the concept of 'typing'.

    My personal view is to stay with tslint for typescript for now. eslint maybe used for javascript, but the UX is very poor when using eslint for typescript (at least in my current setting)

    3 votes
  2. beenotung
    Link
    eslint offer more checking but some (if not most) or their rules cannot be autofix by the --fix flag

    eslint offer more checking but some (if not most) or their rules cannot be autofix by the --fix flag

    1 vote