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"?
There are a few good reasons why you'd use Prettier over TSLint:
whitespace
rule and related are intentionally not feature-complete with Prettier (reference).Here's a common approach if you're still interested:
tslint.json
, use tslint-config-prettier
to disable any formatting rules that conflict with Prettierhusky
and pretty-quick
to auto-run Prettier on all Git commits