practical-tslint-react-config
v1.0.7
Published
A TSLint ruleset based on the Airbnb style guide, Prettier, and React best practices
Downloads
11
Maintainers
Readme
A TSLint ruleset based on the Airbnb JavaScript style guide, Prettier, and TypeScript best practices.
Goal
To build a ruleset that promotes consistency, efficiency, optimized code, and most of all to not get in the developer's way.
Installation
npm install practical-tslint-react-config --save-dev
Usage
The only thing that your tslint.json
should consist of:
{
"extends": "practical-tslint-react-config"
}
Some of the rules in the set require type info. Therefore when you run the linter via CLI,
specifying the --project
flag is recommended.
tslint --project tsconfig.json --config tslint.json