A super evil TSLint config for the Airbnb JavaScript Style Guide
This project started as a hard-fork of the tslint-config-airbnb nodejs package, because it lacked some rules and wasn't as strict as Ströer Digital Publishing GmbH wanted it to be.
For a complete overview of all rules that are applied/enforced by this package, see Rules.md.
- yarn or npm
- typescript
Make sure that you're using the exact same TSLint configuration file as described.
If you're using an .editorconfig
file, make sure it applies the same rules
that are part of this package.
If you're using an webpack
, make sure that the configuration file(s) for
webpack don't interfere with the rules that are applied/enforced by this
package.
Check the tslint-loader
section of your webpack config, if you happen to use
linters with webpack.
You can either install it via yarn (the preferred way), or with npm.
yarn add @superevilmegaco/superevil-tslint-config-airbnb
npm install --save @superevilmegaco/superevil-tslint-config-airbnb
Simply put this into your tslint.json
configuration file:
{
"defaultSeverity": "error",
"extends": "@superevilmegaco/superevil-tslint-config-airbnb",
"jsRules": {},
"rules": {}
}
In Visual Studio Code, press
CTRL + SHIFT + P,
then enter Extensions: Install Extensions
and search for TSLint
.
Select the TSLint Plugin and install it.
After the installation completes, reload the IDE.