eslint-plugin-ronnie
v0.0.2
Published
ronnie eslint plugin
Downloads
5
Maintainers
Readme
eslint-plugin-ronnie
限制嵌套三层以上的三元运算符
Installation
You'll first need to install ESLint:
npm i eslint --save-devNext, install eslint-plugin-ronnie:
npm install eslint-plugin-ronnie --save-devUsage
In your configuration file, import the plugin eslint-plugin-ronnie and add ronnie to the plugins key:
import ronnie from "eslint-plugin-ronnie";
export default [
{
plugins: {
ronnie
}
}
];Then configure the rules you want to use under the rules key.
import ronnie from "eslint-plugin-ronnie";
export default [
{
plugins: {
ronnie
},
rules: {
"ronnie/rule-name": "warn"
}
}
];Configurations
TODO: Run eslint-doc-generator to generate the configs list (or delete this section if no configs are offered).
Rules
TODO: Run eslint-doc-generator to generate the rules list.
