1.0.15 • Published 2 years ago
eslint-plugin-wn-fecodescan v1.0.15
eslint-plugin-wn-fecodescan
wn 前端代码扫描插件
Installation
You'll first need to install ESLint:
$ npm i eslint --save-devNext, install eslint-plugin-wn-fecodescan:
$ npm install eslint-plugin-wn-fecodescan --save-devNote: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-wn-fecodescan globally.
Usage
Add comments-key to the plugins section of your .eslintrc configuration file or package.json. You can omit the eslint-plugin- prefix:
package.json demo
"eslintConfig": {
"plugins": [
"wn-fecodescan"
],
"rules": {
'wn-fecodescan/xxxx': 'error',
}
}After the configuration is complete, you can see the prompts when coding and building