0.0.6 • Published 3 years ago
eslint-plugin-siss
Licence
ISC
Version
0.0.6
Deps
9
Size
17 kB
Vulns
0
Weekly
0
eslint-plugin-siss
Do not download,仅供个人及所在团队项目
Installation
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-siss:
$ npm install eslint-plugin-siss --save-dev
Usage
Add siss/remove-console to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": ["siss"]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"siss/remove-log": process.env.NODE_ENV === "production" ? "error" : "off"
}
}
Supported Rules
以下支持
cross-env NODE_ENV=production