eslint-plugin-putout
ESLint plagin for putout with built-in rules from @putout/eslint-config.
Installation
$ npm i eslint eslint-plugin-putout -D
Note: If you installed ESLint globally (using the -g
flag) then you must also install eslint-plugin-putout
globally.
Usage
Add putout
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"extends": [
"plugin:putout/recommended",
],
"plugins": [
"putout"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"putout/one-line-destructuring": "error",
"putout/destructuring-as-function-argument": "error",
"putout/align-spaces": "error"
}
}
Supported Rules