eslinttslintprettier

Tslint/eslint vs prettier


Tslint (probably as well as eslint) has a --fix param, that fixes style errors. Is there any reason I should also consider using prettier, other than "prettier has more style rules"?


Solution

  • There are a few good reasons why you'd use Prettier over TSLint:

    Here's a common approach if you're still interested: