@putout/plugin-putout-config 7.0.1 → 7.1.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.
Files changed (2) hide show
  1. package/README.md +28 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -14,11 +14,12 @@ npm i @putout/plugin-putout-config -D
14
14
  ## Rules
15
15
 
16
16
  - ✅ [apply-conditions](#apply-conditions);
17
+ - ✅ [apply-esm](#apply-esm);
17
18
  - ✅ [apply-for-of](#apply-for-of);
18
19
  - ✅ [apply-labels](#apply-labels);
19
20
  - ✅ [apply-math](#apply-math);
20
21
  - ✅ [apply-nodejs](#apply-nodejs);
21
- - ✅ [apply-optional-chaining](#apply-conditions);
22
+ - ✅ [apply-optional-chaining](#apply-optional-chaining);
22
23
  - ✅ [apply-promises](#apply-promises);
23
24
  - ✅ [apply-tape](#apply-tape);
24
25
  - ✅ [apply-types](#apply-types);
@@ -35,6 +36,7 @@ npm i @putout/plugin-putout-config -D
35
36
  {
36
37
  "rules": {
37
38
  "putout-config/apply-conditions": "on",
39
+ "putout-config/apply-esm": "on",
38
40
  "putout-config/apply-for-of": "on",
39
41
  "putout-config/apply-labels": "on",
40
42
  "putout-config/apply-math": "on",
@@ -52,6 +54,31 @@ npm i @putout/plugin-putout-config -D
52
54
  }
53
55
  ```
54
56
 
57
+ ## apply-esm
58
+
59
+ Apply [`esm`](https://github.com/coderaiser/putout/tree/master/packages/plugin-esm#readme) according to:
60
+
61
+ - 🐊[**Putout v37**](https://github.com/coderaiser/putout/releases/tag/v37.0.0):
62
+
63
+ ```diff
64
+ {
65
+ "rules": {
66
+ - "remove-empty/import": "on",
67
+ - "remove-empty/export": "on",
68
+ + "esm/remove-empty-import": "on",
69
+ + "esm/remove-empty-export": "on",
70
+ - "group-imports-by-source": "on",
71
+ - "declare-imports-first": "on",
72
+ - "remove-quotes-from-import-assertions": "on",
73
+ - "merge-duplicate-imports": "on"
74
+ + "esm/group-imports-by-source": "on",
75
+ + "esm/declare-imports-first": "on",
76
+ + "esm/remove-quotes-from-import-assertions": "on",
77
+ + "esm/merge-duplicate-imports": "on"
78
+ }
79
+ }
80
+ ```
81
+
55
82
  ## apply-optional-chaining
56
83
 
57
84
  Apply [`optional-chaining`](https://github.com/coderaiser/putout/tree/master/packages/plugin-optional-chaining#readme) according to:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/plugin-putout-config",
3
- "version": "7.0.1",
3
+ "version": "7.1.0",
4
4
  "type": "commonjs",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "🐊Putout plugin helps to maintain putout config",