@putout/plugin-putout-config 7.1.0 → 7.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
@@ -15,6 +15,7 @@ npm i @putout/plugin-putout-config -D
15
15
 
16
16
  - ✅ [apply-conditions](#apply-conditions);
17
17
  - ✅ [apply-esm](#apply-esm);
18
+ - ✅ [apply-parens](#apply-parens);
18
19
  - ✅ [apply-for-of](#apply-for-of);
19
20
  - ✅ [apply-labels](#apply-labels);
20
21
  - ✅ [apply-math](#apply-math);
@@ -42,6 +43,7 @@ npm i @putout/plugin-putout-config -D
42
43
  "putout-config/apply-math": "on",
43
44
  "putout-config/apply-nodejs": "on",
44
45
  "putout-config/apply-optional-chaining": "on",
46
+ "putout-config/apply-parens": "on",
45
47
  "putout-config/apply-tape": "on",
46
48
  "putout-config/apply-types": "on",
47
49
  "putout-config/apply-promises": "on",
@@ -79,6 +81,21 @@ Apply [`esm`](https://github.com/coderaiser/putout/tree/master/packages/plugin-e
79
81
  }
80
82
  ```
81
83
 
84
+ ## apply-parens
85
+
86
+ Apply [`parens`](https://github.com/coderaiser/putout/tree/master/packages/plugin-parens#readme) according to:
87
+
88
+ - 🐊[**Putout v37**](https://github.com/coderaiser/putout/releases/tag/v37.0.0):
89
+
90
+ ```diff
91
+ {
92
+ "rules": {
93
+ - "add-missing-parens": "on"
94
+ + "parens/add-missing": "on"
95
+ }
96
+ }
97
+ ```
98
+
82
99
  ## apply-optional-chaining
83
100
 
84
101
  Apply [`optional-chaining`](https://github.com/coderaiser/putout/tree/master/packages/plugin-optional-chaining#readme) according to:
@@ -0,0 +1,14 @@
1
+ 'use strict';
2
+
3
+ const {createRenameProperty} = require('../rename-property');
4
+
5
+ const v37 = [
6
+ ['remove-empty/import', 'esm/remove-empty-import'],
7
+ ['remove-empty/export', 'esm/remove-empty-export'],
8
+ ['group-imports-by-source', 'esm/group-imports-by-source'],
9
+ ['declare-imports-first', 'esm/declare-imports-first'],
10
+ ['remove-quotes-from-import-assertions', 'esm/remove-quotes-from-import-assertions'],
11
+ ['merge-duplicate-imports', 'esm/merge-duplicate-imports'],
12
+ ];
13
+
14
+ module.exports = createRenameProperty(v37);
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ const {createRenameProperty} = require('../rename-property');
4
+
5
+ const v37 = [
6
+ ['add-missing-parens', 'parens/add-missing'],
7
+ ];
8
+
9
+ module.exports = createRenameProperty(v37);
package/lib/index.js CHANGED
@@ -1,7 +1,9 @@
1
1
  'use strict';
2
2
 
3
3
  const applyConditions = require('./apply-conditions');
4
+ const applyEsm = require('./apply-esm');
4
5
  const applyOptionalChaining = require('./apply-optional-chaining');
6
+ const applyParens = require('./apply-parens');
5
7
  const applyForOf = require('./apply-for-of');
6
8
  const applyLabels = require('./apply-labels');
7
9
  const applyMath = require('./apply-math');
@@ -17,11 +19,13 @@ const removeEmptyFile = require('./remove-empty-file');
17
19
 
18
20
  module.exports.rules = {
19
21
  'apply-conditions': applyConditions,
22
+ 'apply-esm': applyEsm,
20
23
  'apply-for-of': applyForOf,
21
24
  'apply-labels': applyLabels,
22
25
  'apply-math': applyMath,
23
26
  'apply-nodejs': applyNodejs,
24
27
  'apply-optional-chaining': applyOptionalChaining,
28
+ 'apply-parens': applyParens,
25
29
  'apply-promises': applyPromises,
26
30
  'apply-tape': applyTape,
27
31
  'apply-types': applyTypes,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/plugin-putout-config",
3
- "version": "7.1.0",
3
+ "version": "7.2.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",