eslint-plugin-zencity
v1.1.2
Published
A bundle of linting rules for Zencity
Downloads
28
Maintainers
Readme
eslint-plugin-zencity
A bundle of linting rules for Zencity
Installation
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-zencity
:
$ npm install eslint-plugin-zencity --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install eslint-plugin-zencity
globally.
Usage
Add zencity
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"zencity"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"zencity/autofix-no-prototype-builtins": "error",
"zencity/autofix-jsx-no-target-blank": "error",
"zencity/object-curly-spacing-on-fixing-prefer-destructuring": "error",
"zencity/prefer-custom-logger": "warn",
"no-prototype-builtins": "off",
"react/jsx-no-target-blank": "off",
"prefer-destructuring": "off",
}
}