eslint-plugin-zen
v0.1.1
Published
zen encoding style
Downloads
2
Maintainers
Readme
eslint-plugin-zen
zen encoding style
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-zen
:
npm install eslint-plugin-zen --save-dev
Usage
The most convenient method is to directly introduce it through the 'extends' field:
{
"extends":["zen/recommended"]
}
It completes the following two actions:
Add zen
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"zen"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"zen/rule-name": 2
}
}
Rules
💼 Configurations enabled in.
✅ Set in the recommended
configuration.
| Name | Description | 💼 | | :--------------------------------------------------------- | :---------------- | :- | | no-console-time | no console.time() | ✅ | | no-settimeout-number | desc for rule | ✅ |