putout 37.10.0 → 37.12.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/ChangeLog +25 -0
- package/lib/parse-error.js +1 -3
- package/lib/parse-options/apply-module-type-rules.js +24 -28
- package/package.json +3 -3
package/ChangeLog
CHANGED
|
@@ -1,3 +1,28 @@
|
|
|
1
|
+
2025.01.05, v37.12.0
|
|
2
|
+
|
|
3
|
+
fix:
|
|
4
|
+
- 64605cf2b @putout/test: Error -> createError
|
|
5
|
+
|
|
6
|
+
feature:
|
|
7
|
+
- 90ab1d5fe putout: @putout/plugin-remove-useless-arguments v10.0.0
|
|
8
|
+
- f3b72d079 @putout/plugin-remove-useless-arguments: drop support of node < 18
|
|
9
|
+
- 1079cdc74 @putout/plugin-remove-useless-arguments: unused: add
|
|
10
|
+
- 113c84884 @putout/plugin-declare-before-reference: improve scope check
|
|
11
|
+
|
|
12
|
+
2025.01.05, v37.11.0
|
|
13
|
+
|
|
14
|
+
fix:
|
|
15
|
+
- f871b5344 @putout/plugin-apply-arrow: find top scope
|
|
16
|
+
|
|
17
|
+
feature:
|
|
18
|
+
- ebdccbaa4 putout: @putout/plugin-types v6.0.0
|
|
19
|
+
- b8b25399c @putout/plugin-types: convert-typeof-to-is-type: add support of isError
|
|
20
|
+
- b3fe00dfb @putout/plugin-types: drop support of 🐊 < 37
|
|
21
|
+
- fdc62279f @putout/plugin-types: declare: isError: add
|
|
22
|
+
- b49445435 @putout/plugin-apply-arrow: different scopes
|
|
23
|
+
- bf73e15cb @putout/apply-arrow: handle case when no loc found
|
|
24
|
+
- 90146fe82 @putout/plugin-apply-arrow: exclude long lines
|
|
25
|
+
|
|
1
26
|
2025.01.04, v37.10.0
|
|
2
27
|
|
|
3
28
|
feature:
|
package/lib/parse-error.js
CHANGED
|
@@ -8,34 +8,30 @@ module.exports = ({type}, options) => {
|
|
|
8
8
|
assign(options, merge(options, rules));
|
|
9
9
|
};
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
'
|
|
15
|
-
'nodejs/convert-esm-to-commonjs': 'on',
|
|
16
|
-
},
|
|
17
|
-
'.eslintrc.json': {
|
|
18
|
-
'eslint': 'on',
|
|
19
|
-
'eslint/convert-require-to-import': 'off',
|
|
20
|
-
},
|
|
11
|
+
const commonjs = () => ({
|
|
12
|
+
match: {
|
|
13
|
+
'*.js': {
|
|
14
|
+
'nodejs/convert-esm-to-commonjs': 'on',
|
|
21
15
|
},
|
|
22
|
-
|
|
23
|
-
|
|
16
|
+
'.eslintrc.json': {
|
|
17
|
+
'eslint': 'on',
|
|
18
|
+
'eslint/convert-require-to-import': 'off',
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
});
|
|
24
22
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
'
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
'
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
'
|
|
36
|
-
|
|
37
|
-
'eslint/convert-require-to-import': 'on',
|
|
38
|
-
},
|
|
23
|
+
const esm = () => ({
|
|
24
|
+
match: {
|
|
25
|
+
'*.js': {
|
|
26
|
+
'nodejs/convert-commonjs-to-esm': 'on',
|
|
27
|
+
'nodejs/add-strict-mode': 'off',
|
|
28
|
+
},
|
|
29
|
+
'{test,*.spec.js}': {
|
|
30
|
+
'tape/convert-mock-require-to-mock-import': 'on',
|
|
31
|
+
},
|
|
32
|
+
'.eslintrc.json': {
|
|
33
|
+
'eslint': 'on',
|
|
34
|
+
'eslint/convert-require-to-import': 'on',
|
|
39
35
|
},
|
|
40
|
-
}
|
|
41
|
-
}
|
|
36
|
+
},
|
|
37
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "putout",
|
|
3
|
-
"version": "37.
|
|
3
|
+
"version": "37.12.0",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
6
6
|
"description": "🐊 Pluggable and configurable code transformer with built-in ESLint, Babel and support of js, jsx, typescript, flow, markdown, yaml and json",
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
"@putout/plugin-remove-unused-labels": "^1.0.1",
|
|
156
156
|
"@putout/plugin-remove-unused-private-fields": "^2.0.0",
|
|
157
157
|
"@putout/plugin-remove-unused-variables": "^10.0.0",
|
|
158
|
-
"@putout/plugin-remove-useless-arguments": "^
|
|
158
|
+
"@putout/plugin-remove-useless-arguments": "^10.0.0",
|
|
159
159
|
"@putout/plugin-remove-useless-array": "^1.0.0",
|
|
160
160
|
"@putout/plugin-remove-useless-array-constructor": "^2.0.0",
|
|
161
161
|
"@putout/plugin-remove-useless-array-entries": "^1.0.0",
|
|
@@ -182,7 +182,7 @@
|
|
|
182
182
|
"@putout/plugin-split-variable-declarations": "^3.0.0",
|
|
183
183
|
"@putout/plugin-tape": "^16.0.0",
|
|
184
184
|
"@putout/plugin-try-catch": "^4.0.0",
|
|
185
|
-
"@putout/plugin-types": "^
|
|
185
|
+
"@putout/plugin-types": "^6.0.0",
|
|
186
186
|
"@putout/plugin-typescript": "^9.0.0",
|
|
187
187
|
"@putout/plugin-webpack": "^3.0.0",
|
|
188
188
|
"@putout/processor-css": "^9.0.0",
|