@putout/plugin-destructuring 1.3.0 → 1.4.1

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
@@ -17,8 +17,8 @@ npm i @putout/plugin-destructuring
17
17
 
18
18
  ## Rules
19
19
 
20
- - ✅ [apply-object](#apply-object);
21
20
  - ✅ [apply-array](#apply-array);
21
+ - ✅ [apply-object](#apply-object);
22
22
  - ✅ [convert-object-to-array](#convert-object-to-array);
23
23
  - ✅ [extract-properties](#extract-properties);
24
24
  - ✅ [remove-useless-object](#remove-useless-object);
@@ -33,8 +33,8 @@ npm i @putout/plugin-destructuring
33
33
  ```json
34
34
  {
35
35
  "rules": {
36
- "destructuring/apply-object": "on",
37
36
  "destructuring/apply-array": "on",
37
+ "destructuring/apply-object": "on",
38
38
  "destructuring/convert-object-to-array": "on",
39
39
  "destructuring/extract-properties": "on",
40
40
  "destructuring/remove-useless-object": "on",
@@ -55,7 +55,7 @@ npm i @putout/plugin-destructuring
55
55
  const first = array[0];
56
56
  ```
57
57
 
58
- ## ✅ Example of correct code
58
+ ### ✅ Example of correct code
59
59
 
60
60
  ```js
61
61
  const [first] = array;
@@ -120,8 +120,6 @@ const [a, b] = c;
120
120
  >
121
121
  > (c) [Destructuring in JavaScript: the not so good parts](https://goodguydaniel.com/blog/destructuring-not-so-good-parts)
122
122
 
123
- 🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to split nested destructuring.
124
-
125
123
  ### ❌ Example of incorrect code
126
124
 
127
125
  ```js
@@ -198,7 +196,7 @@ const {one, two} = require('numbers');
198
196
  } = data);
199
197
  ```
200
198
 
201
- ### remove-useless-arguments
199
+ ## remove-useless-arguments
202
200
 
203
201
  ### ❌ Example of incorrect code
204
202
 
package/lib/index.js CHANGED
@@ -11,8 +11,8 @@ import * as splitCall from './split-call/index.js';
11
11
  import * as mergeProperties from './merge-properties/index.js';
12
12
 
13
13
  export const rules = {
14
- 'apply-object': applyObject,
15
14
  'apply-array': applyArray,
15
+ 'apply-object': applyObject,
16
16
  'convert-object-to-array': convertObjectToArray,
17
17
  'extract-properties-equal-deep': extractPropertiesEqualDeep,
18
18
  'extract-properties-not-equal-deep': extractPropertiesNotEqualDeep,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/plugin-destructuring",
3
- "version": "1.3.0",
3
+ "version": "1.4.1",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "🐊Putout plugin adds ability to transform destructuring",
@@ -23,7 +23,9 @@
23
23
  "coverage": "madrun coverage",
24
24
  "report": "madrun report"
25
25
  },
26
- "dependencies": {},
26
+ "dependencies": {
27
+ "redput": "^3.6.0"
28
+ },
27
29
  "keywords": [
28
30
  "putout",
29
31
  "putout-plugin",
@@ -42,7 +44,7 @@
42
44
  "@putout/plugin-variables": "*",
43
45
  "@putout/test": "^14.0.0",
44
46
  "c8": "^10.0.0",
45
- "eslint": "v10.0.0-alpha.0",
47
+ "eslint": "^10.0.0-alpha.0",
46
48
  "eslint-plugin-n": "^17.0.0",
47
49
  "eslint-plugin-putout": "^29.0.0",
48
50
  "madrun": "^11.0.0",