eslint-plugin-putout
ESLint plugin 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/putout": "error",
"putout/single-property-destructuring": "error",
"putout/multiple-properties-destructuring": "error",
"putout/long-properties-destructuring": "error",
"putout/destructuring-as-function-argument": "error",
"putout/align-spaces": "error",
"putout/new-line-function-call-arguments": "error"
}
}
Supported Rules