putout 37.10.0 → 37.11.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 +14 -0
- package/lib/parse-error.js +1 -3
- package/lib/parse-options/apply-module-type-rules.js +24 -28
- package/package.json +2 -2
package/ChangeLog
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
2025.01.05, v37.11.0
|
|
2
|
+
|
|
3
|
+
fix:
|
|
4
|
+
- f871b5344 @putout/plugin-apply-arrow: find top scope
|
|
5
|
+
|
|
6
|
+
feature:
|
|
7
|
+
- ebdccbaa4 putout: @putout/plugin-types v6.0.0
|
|
8
|
+
- b8b25399c @putout/plugin-types: convert-typeof-to-is-type: add support of isError
|
|
9
|
+
- b3fe00dfb @putout/plugin-types: drop support of 🐊 < 37
|
|
10
|
+
- fdc62279f @putout/plugin-types: declare: isError: add
|
|
11
|
+
- b49445435 @putout/plugin-apply-arrow: different scopes
|
|
12
|
+
- bf73e15cb @putout/apply-arrow: handle case when no loc found
|
|
13
|
+
- 90146fe82 @putout/plugin-apply-arrow: exclude long lines
|
|
14
|
+
|
|
1
15
|
2025.01.04, v37.10.0
|
|
2
16
|
|
|
3
17
|
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.11.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",
|
|
@@ -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",
|