Skip to content

Commit 9522617

Browse files
committed
feture: @putout/plugin-putout-config: apply-destructuring: remove-useless-arguments
1 parent e4ef5c6 commit 9522617

File tree

4 files changed

+15
-10
lines changed

4 files changed

+15
-10
lines changed

packages/plugin-putout-config/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,13 +162,15 @@ Apply [`destructuring`](https://github.com/coderaiser/putout/tree/master/package
162162
- "split-call-with-destructuring": "off",
163163
- "merge-destructuring-properties": "off",
164164
- "split-nested-destructuring": "off"
165+
- "remove-useless-arguments/destructuring": "off"
165166
+ "destructuring": "off",
166167
+ "destructuring/remove-useless-object": "off",
167168
+ "destructuring/apply-array": "off",
168169
+ "destructuring/apply-object": "off",
169170
+ "destructuring/split-call": "off",
170171
+ "destructuring/merge-properties": "off",
171-
+ "destructuring/split-nested": "off"
172+
+ "destructuring/split-nested": "off",
173+
+ "destructuring/remove-useless-arguments": "off"
172174
}
173175
}
174176
```

packages/plugin-putout-config/lib/apply-destructuring/fixture/apply-destructuring-fix.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ __putout_processor_json({
66
"destructuring/apply-object": "off",
77
"destructuring/split-call": "off",
88
"destructuring/merge-properties": "off",
9-
"destructuring/split-nested": "off"
9+
"destructuring/split-nested": "off",
10+
"destructuring/remove-useless-arguments": "off"
1011
}
1112
});
Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
__putout_processor_json({
22
rules: {
3-
"apply-destructuring": "off",
4-
"apply-destructuring/falsy": "off",
5-
"apply-destructuring/array": "off",
6-
"apply-destructuring/object": "off",
7-
"split-call-with-destructuring": "off",
8-
"merge-destructuring-properties": "off",
9-
"split-nested-destructuring": "off"
10-
}
3+
'apply-destructuring': 'off',
4+
'apply-destructuring/falsy': 'off',
5+
'apply-destructuring/array': 'off',
6+
'apply-destructuring/object': 'off',
7+
'split-call-with-destructuring': 'off',
8+
'merge-destructuring-properties': 'off',
9+
'split-nested-destructuring': 'off',
10+
'remove-useless-arguments/destructuring': 'off',
11+
},
1112
});

packages/plugin-putout-config/lib/apply-destructuring/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const v41 = [
88
['merge-destructuring-properties', 'destructuring/merge-properties'],
99
['split-call-with-destructuring', 'destructuring/split-call'],
1010
['split-nested-destructuring', 'destructuring/split-nested'],
11+
['remove-useless-arguments/destructuring', 'destructuring/remove-useless-arguments'],
1112
];
1213

1314
const versions = [...v41];

0 commit comments

Comments
 (0)