eslint-plugin-putout
Advanced tools
Comparing version 1.4.4 to 1.5.0
{ | ||
"name": "eslint-plugin-putout", | ||
"version": "1.4.4", | ||
"version": "1.5.0", | ||
"description": "eslint plagin for putout", | ||
@@ -39,7 +39,7 @@ "release": false, | ||
"devDependencies": { | ||
"eslint": "^5.0.0", | ||
"eslint": "^6.0.0-alpha", | ||
"eslint-plugin-node": "^8.0.1", | ||
"madrun": "^2.0.0", | ||
"mocha": "^5.2.0", | ||
"nyc": "^13.1.0", | ||
"nyc": "^14.0.0", | ||
"putout": "*" | ||
@@ -46,0 +46,0 @@ }, |
@@ -19,4 +19,6 @@ 'use strict'; | ||
create(context) { | ||
const {minProperties = 2} = (context.options[0] || {}); | ||
return { | ||
'VariableDeclarator[id.type="ObjectPattern"][id.properties.length>2]': (node) => { | ||
[`VariableDeclarator[id.type="ObjectPattern"][id.properties.length>${minProperties}]`]: (node) => { | ||
if (node.parent.parent.type === 'ForOfStatement') | ||
@@ -23,0 +25,0 @@ return; |
11079
250