👮 tslint + 💅 prettier = 😍
Do you want to use tslint and prettier without conflicts? tslint-config-prettier disables all conflicting rules that may cause such problems. Prettier takes care of the formatting whereas tslint takes care of all the other things.
Check how it works in this tutorial.
npm install -D tslint-config-prettier
Then, extend your
tslint.json, and make sure
tslint-config-prettier is at the end:
tslint-config-prettier also turns off formatting rules from the following rulesets, so you can use them safely.
CLI helper tool
tslint-config-prettier is shipped with a little CLI tool to help you check if your configuration contains any rules that are in conflict with Prettier. (require
In order to execute the CLI tool, first add a script for it to
npm run tslint-check.
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
- tslint-plugin-prettier - Runs Prettier as a TSLint rule and reports differences as individual TSLint issues.