@putout/plugin-putout-config 9.0.1 β 10.0.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 +11 -0
- package/lib/apply-esm/index.js +10 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -108,6 +108,17 @@ Apply [`return`](https://github.com/coderaiser/putout/tree/master/packages/plugi
|
|
|
108
108
|
|
|
109
109
|
Apply [`esm`](https://github.com/coderaiser/putout/tree/master/packages/plugin-esm#readme) according to:
|
|
110
110
|
|
|
111
|
+
- π[**Putout v40**](https://github.com/coderaiser/putout/releases/tag/v40.0.0):
|
|
112
|
+
|
|
113
|
+
```diff
|
|
114
|
+
{
|
|
115
|
+
"rules": {
|
|
116
|
+
- "putout/add-index-to-import": "on"
|
|
117
|
+
+ "esm/add-index-to-import": "on"
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
```
|
|
121
|
+
|
|
111
122
|
- π[**Putout v37**](https://github.com/coderaiser/putout/releases/tag/v37.0.0):
|
|
112
123
|
|
|
113
124
|
```diff
|
package/lib/apply-esm/index.js
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import {createRenameProperty} from '../rename-property.js';
|
|
2
2
|
|
|
3
|
+
const v40 = [
|
|
4
|
+
['putout/apply-index-to-import', 'esm/apply-index-to-import'],
|
|
5
|
+
];
|
|
6
|
+
|
|
3
7
|
const v37 = [
|
|
4
8
|
['convert-assert-to-with', 'esm/convert-assert-to-with'],
|
|
5
9
|
['remove-empty/import', 'esm/remove-empty-import'],
|
|
@@ -11,11 +15,16 @@ const v37 = [
|
|
|
11
15
|
['merge-duplicate-imports', 'esm/merge-duplicate-imports'],
|
|
12
16
|
];
|
|
13
17
|
|
|
18
|
+
const versions = [
|
|
19
|
+
...v37,
|
|
20
|
+
...v40,
|
|
21
|
+
];
|
|
22
|
+
|
|
14
23
|
const {
|
|
15
24
|
report,
|
|
16
25
|
fix,
|
|
17
26
|
traverse,
|
|
18
|
-
} = createRenameProperty(
|
|
27
|
+
} = createRenameProperty(versions);
|
|
19
28
|
|
|
20
29
|
export {
|
|
21
30
|
report,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@putout/plugin-putout-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.0.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",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"nodemon": "^3.0.1"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"putout": ">=
|
|
44
|
+
"putout": ">=40"
|
|
45
45
|
},
|
|
46
46
|
"license": "MIT",
|
|
47
47
|
"engines": {
|