tslint-midway-contrib
v1.20.1
Published
tslint default rule for midway
Downloads
254
Readme
tslint-midway-contrib
this is a sub package for midway.
Document: https://midwayjs.org/midway
Install
tnpm i tslint tslint-midway-contrib --save-dev
Usage
package.json
"prettier": {
"singleQuote": true
}
Configuration
tslint.json
{
"extends": ["tslint-midway-contrib"]
}
Which Rules Should I Turn On?
There certainly are a lot of options!
To start, you can enable our recommended defaults (recommended ruleset) by adding "@ali/tslint-midway"
under "extends"
in your tslint.json
:
{
"extends": ["tslint-midway-contrib"],
"rulesDirectory": ["node_modules/tslint-midway-contrib"],
"rules": {
// ...
}
}