Nest Boot 定制规则
Nest Boot 定制规则
You'll first need to install ESLint:
``sh`
npm i eslint --save-dev
Next, install eslint-plugin-nest-boot:
`sh`
npm install eslint-plugin-nest-boot --save-dev
Add nest-boot to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
`json`
{
"plugins": ["nest-boot"]
}
Then configure the rules you want to use under the rules section.
`json``
{
"rules": {
"nest-boot/rule-name": 2
}
}
TODO: Run eslint-doc-generator to generate the rules list.