0.0.6 • Published 2 years ago
eslint-plugin-siss v0.0.6
eslint-plugin-siss
Do not download,仅供个人及所在团队项目
Installation
You'll first need to install ESLint:
$ npm i eslint --save-devNext, install eslint-plugin-siss:
$ npm install eslint-plugin-siss --save-devUsage
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