dxy-mom plugin
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install @dxy-mom/eslint-plugin-dxymom
:
$ npm install eslint-plugin-dxymom --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install @dxy-mom/eslint-plugin-dxymom
globally.
Add dxymom
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"@dxy-mom/eslint-plugin-dxymom"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"@dxy-mom/dxymom/safe-value": "warn"
}
}
- safe-value: 安全取值警告