eslint-plugin-wn-fecodescan
v1.0.15
Published
wn fe codescan plugin
Downloads
37
Readme
eslint-plugin-wn-fecodescan
wn 前端代码扫描插件
Installation
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-wn-fecodescan
:
$ npm install eslint-plugin-wn-fecodescan --save-dev
Note: 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