@dvhb/tslint-config
v1.0.9
Published
dvhb tslint config
Downloads
2
Readme
TSLint Config DVHB
Basic TSLint config for DVHB projects
Installation
npm install @dvhb/tslint-config --save-dev
Usage
In tslint.json
:
{
"extends": "@dvhb/tslint-config"
}
Extends
- tslint-config-airbnb — rules based on Airbnb JavaScript Style Guide
- tslint-config-prettier — disables all rules that may cause conflicts with prettier
- tslint-plugin-prettier — runs Prettier as a TSLint rule
Rules
no-console
— forbidsconsole.log()
prettier
— checks code style with Prettiervariable-name
— restrict variables names to camelCaseallow-pascal-case
— for classes, constructors and react components nameallow-leading-underscore
— fornoUnusedParameters
TS rule when required parameter of function is not first