eslint-plugin-putout
Advanced tools
Comparing version 1.3.0 to 1.3.1
{ | ||
"name": "eslint-plugin-putout", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "eslint plagin for putout", | ||
@@ -5,0 +5,0 @@ "release": false, |
@@ -33,3 +33,4 @@ # eslint-plugin-putout | ||
"rules": { | ||
"putout/one-line-destructuring": "error", | ||
"putout/single-property-destructuring": "error", | ||
"putout/multiple-properties-destructuring": "error", | ||
"putout/destructuring-as-function-argument": "error", | ||
@@ -43,5 +44,6 @@ "putout/align-spaces": "error" | ||
- [One line destructuring](rules/one-line-destructuring.md) | ||
- [Single property destructuring](rules/single-property-destructuring.md) | ||
- [Multiple properties destructuring](rules/multiple-properties-destructuring.md) | ||
- [Destructuring as function argument](rules/destructuring-as-function-argument.md) | ||
- [Align spaces](rules/align-spaces.md) | ||
@@ -18,3 +18,3 @@ 'use strict'; | ||
return { | ||
'VariableDeclarator[id.type="ObjectPattern"][id.properties.length>1]': (node) => { | ||
'VariableDeclarator[id.type="ObjectPattern"][id.properties.length>2]': (node) => { | ||
const {id} = node; | ||
@@ -21,0 +21,0 @@ const {properties} = id; |
@@ -1,4 +0,4 @@ | ||
# keep each property on separate lines when using multiple destructuring properties (multiple-properties-destructuring) | ||
# keep each property on separate line when using multiple destructuring properties (multiple-properties-destructuring) | ||
In the same way as eslint [object-property-newline](https://eslint.org/docs/rules/object-property-newline) | ||
In the same way as eslint [object-property-newline](https://eslint.org/docs/rules/object-property-newline), but for destructuring. | ||
@@ -5,0 +5,0 @@ ## Rule Details |
10654
48