@putout/plugin-putout-config 6.1.0 → 6.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-labels][#apply-labels];
17
17
  - ✅ [apply-nodejs][#apply-nodejs];
18
+ - ✅ [apply-tape][#apply-tape];
18
19
  - ✅ [convert-boolean-to-string][#convert-boolean-to-string];
19
20
  - ✅ [move-formatter-up][#move-formatter-up];
20
21
  - ✅ [remove-empty][#remove-empty];
@@ -62,7 +63,10 @@ Apply [`labels`](https://github.com/coderaiser/putout/tree/master/packages/plugi
62
63
 
63
64
  ## apply-nodejs
64
65
 
65
- Apply [`nodejs`](https://github.com/coderaiser/putout/tree/master/packages/plugin-nodejs#readme) according to 🐊[**Putout v34**](https://github.com/coderaiser/putout/releases/tag/v34.0.0).
66
+ Apply [`nodejs`](https://github.com/coderaiser/putout/tree/master/packages/plugin-nodejs#readme) according to:
67
+
68
+ - 🐊[**Putout v33**](https://github.com/coderaiser/putout/releases/tag/v33.0.0);
69
+ - 🐊[**Putout v34**](https://github.com/coderaiser/putout/releases/tag/v34.0.0);
66
70
 
67
71
  ### ❌ Example of incorrect code
68
72
 
@@ -70,7 +74,9 @@ Apply [`nodejs`](https://github.com/coderaiser/putout/tree/master/packages/plugi
70
74
  {
71
75
  "rules": {
72
76
  "strict-mode/add-missing": "off",
73
- "strict-mode/remove-useless": "off"
77
+ "strict-mode/remove-useless": "off",
78
+ "convert-esm-to-commonjs": "off",
79
+ "convert-commonjs-to-esm": "off"
74
80
  }
75
81
  }
76
82
  ```
@@ -81,7 +87,35 @@ Apply [`nodejs`](https://github.com/coderaiser/putout/tree/master/packages/plugi
81
87
  {
82
88
  "rules": {
83
89
  "nodejs/add-missing-strict-mode": "off",
84
- "nodejs/remove-useless-strict-mode": "off"
90
+ "nodejs/remove-useless-strict-mode": "off",
91
+ "nodejs/convert-esm-to-commonjs": "off",
92
+ "nodejs/convert-commonjs-to-esm": "off"
93
+ }
94
+ }
95
+ ```
96
+
97
+ ## apply-tape
98
+
99
+ Apply [`tape`](https://github.com/coderaiser/putout/tree/master/packages/plugin-tape#readme) according to:
100
+
101
+ - 🐊[**Putout v33**](https://github.com/coderaiser/putout/releases/tag/v33.0.0);
102
+
103
+ ### ❌ Example of incorrect code
104
+
105
+ ```json
106
+ {
107
+ "rules": {
108
+ "convert-mock-require-to-mock-import": "off"
109
+ }
110
+ }
111
+ ```
112
+
113
+ ### ✅ Example of correct code
114
+
115
+ ```json
116
+ {
117
+ "rules": {
118
+ "tape/convert-mock-require-to-mock-import": "off"
85
119
  }
86
120
  }
87
121
  ```
@@ -5,4 +5,6 @@ const {createRenameProperty} = require('../rename-property');
5
5
  module.exports = createRenameProperty([
6
6
  ['strict-mode/add-missing', 'nodejs/add-missing-strict-mode'],
7
7
  ['strict-mode/remove-useless', 'nodejs/remove-useless-strict-mode'],
8
+ ['convert-esm-to-commonjs', 'nodejs/convert-esm-to-commonjs'],
9
+ ['convert-commonjs-to-esm', 'nodejs/convert-commonjs-to-esm'],
8
10
  ]);
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ const {createRenameProperty} = require('../rename-property');
4
+
5
+ module.exports = createRenameProperty([
6
+ ['convert-mock-require-to-mock-import', 'tape/convert-mock-require-to-mock-import'],
7
+ ]);
package/lib/index.js CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  const applyLabels = require('./apply-labels');
4
4
  const applyNodejs = require('./apply-nodejs');
5
+ const applyTape = require('./apply-tape');
5
6
  const convertBooleanToString = require('./convert-boolean-to-string');
6
7
  const removeEmpty = require('./remove-empty');
7
8
  const MoveFormatterUp = require('./move-formatter-up');
@@ -9,6 +10,7 @@ const MoveFormatterUp = require('./move-formatter-up');
9
10
  module.exports.rules = {
10
11
  'apply-labels': applyLabels,
11
12
  'apply-nodejs': applyNodejs,
13
+ 'apply-tape': applyTape,
12
14
  'convert-boolean-to-string': convertBooleanToString,
13
15
  'move-formatter-up': MoveFormatterUp,
14
16
  'remove-empty': removeEmpty,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/plugin-putout-config",
3
- "version": "6.1.0",
3
+ "version": "6.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",