@putout/plugin-putout-config 11.1.0 → 11.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -13,6 +13,7 @@ npm i @putout/plugin-putout-config -D
13
13
 
14
14
  ## Rules
15
15
 
16
+ - ✅ [apply-arguments](#apply-assignment);
16
17
  - ✅ [apply-assignment](#apply-assignment);
17
18
  - ✅ [apply-conditions](#apply-conditions);
18
19
  - ✅ [apply-destructuring](#apply-destructuring);
@@ -39,6 +40,7 @@ npm i @putout/plugin-putout-config -D
39
40
  ```json
40
41
  {
41
42
  "rules": {
43
+ "putout-config/apply-arguments": "on",
42
44
  "putout-config/apply-assignment": "on",
43
45
  "putout-config/apply-conditions": "on",
44
46
  "putout-config/apply-destructuring": "on",
@@ -146,6 +148,29 @@ Apply [`esm`](https://github.com/coderaiser/putout/tree/master/packages/plugin-e
146
148
  }
147
149
  ```
148
150
 
151
+ ## apply-arguments
152
+
153
+ Apply [`arguments`](https://github.com/coderaiser/putout/tree/master/packages/plugin-arguments#readme) according to:
154
+
155
+ - 🐊[**Putout v41**](https://github.com/coderaiser/putout/releases/tag/v41.0.0):
156
+
157
+ ```diff
158
+ {
159
+ "rules": {
160
+ - "convert-arguments-to-rest": "off",
161
+ - "remove-useless-arguments/arguments": "on",
162
+ - "remove-useless-arguments/method": "on",
163
+ - "remove-useless-arguments/unused": "on",
164
+ - "remove-useless-arguments/json-parse": "on"
165
+ + "arguments/apply-rest": "on",
166
+ + "arguments/remove-useless": "on",
167
+ + "arguments/remove-useless-from-method": "on",
168
+ + "arguments/remove-unused": "on",
169
+ + "arguments/apply-json-parse": "on"
170
+ }
171
+ }
172
+ ```
173
+
149
174
  ## apply-destructuring
150
175
 
151
176
  Apply [`destructuring`](https://github.com/coderaiser/putout/tree/master/packages/plugin-destructuring#readme) according to:
@@ -161,7 +186,7 @@ Apply [`destructuring`](https://github.com/coderaiser/putout/tree/master/package
161
186
  - "apply-destructuring/object": "off",
162
187
  - "split-call-with-destructuring": "off",
163
188
  - "merge-destructuring-properties": "off",
164
- - "split-nested-destructuring": "off"
189
+ - "split-nested-destructuring": "off",
165
190
  - "remove-useless-arguments/destructuring": "off"
166
191
  + "destructuring": "off",
167
192
  + "destructuring/remove-useless-object": "off",
@@ -0,0 +1,16 @@
1
+ import {createRenameProperty} from '../rename-property.js';
2
+
3
+ const v41 = [
4
+ ['remove-useless-arguments/arguments', 'arguments/remove-useless'],
5
+ ['remove-useless-arguments/method', 'arguments/remove-useless-from-method'],
6
+ ['remove-useless-arguments/unused', 'arguments/remove-unused'],
7
+ ['remove-useless-arguments/json-parse', 'apply-json-parse'],
8
+ ];
9
+
10
+ const versions = [...v41];
11
+
12
+ export const {
13
+ report,
14
+ fix,
15
+ traverse,
16
+ } = createRenameProperty(versions);
package/lib/index.js CHANGED
@@ -1,3 +1,5 @@
1
+ import * as applyArguments from './apply-arguments/index.js';
2
+ import * as applyDestructuring from './apply-destructuring/index.js';
1
3
  import * as applyAssignment from './apply-assignment/index.js';
2
4
  import * as applyConditions from './apply-conditions/index.js';
3
5
  import * as applyEsm from './apply-esm/index.js';
@@ -18,6 +20,8 @@ import * as MoveFormatterUp from './move-formatter-up/index.js';
18
20
  import * as removeEmptyFile from './remove-empty-file/index.js';
19
21
 
20
22
  export const rules = {
23
+ 'apply-arguments': applyArguments,
24
+ 'apply-destructuring': applyDestructuring,
21
25
  'apply-assignment': applyAssignment,
22
26
  'apply-conditions': applyConditions,
23
27
  'apply-esm': applyEsm,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/plugin-putout-config",
3
- "version": "11.1.0",
3
+ "version": "11.2.0",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "🐊Putout plugin helps to maintain putout config",