Package Exports
- eslint-plugin-putout
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (eslint-plugin-putout) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
eslint-plugin-putout

ESLint plugin for putout with built-in rules from @putout/eslint-config.
Installation
$ npm i putout eslint eslint-plugin-putout -DNote: If you installed ESLint globally (using the -g flag) then you must also install putout and 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/keyword-spacing": "error",
"putout/newline-function-call-arguments": "error",
"putout/function-declaration-paren-newline": "error",
"putout/remove-newline-after-default-import": "error",
"putout/remove-empty-newline-after-last-specifier": "error",
"putout/objects-braces-inside-array": "error",
"putout/object-init": "error"
}
}Supported Rules
- putout
- Single property destructuring
- Multiple properties destructuring
- For-of multiple properties destructuring
- Long properties destructuring
- Destructuring as function argument
- Align spaces
- Keyword spacing
- Newline function call arguments
- Function declaration paren newline
- Remove newline after default import
- Remove empty newline after last specifier
- Objects braces inside array
- Object init
- No unresolved
- Evaluate
- Tape: add new line before assertion
- Tape: add new line between tests
Safe mode
When using putout in IDE with --fix on save, or when you want to disable the most dangerous rules, use:
{
"extends": [
"plugin:putout/safe"
],
"plugins": [
"putout"
]
}List of disabled putout rules: