putout 35.25.1 → 35.27.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 +20 -0
- package/bin/tracer.mjs +0 -1
- package/lib/cli/index.js +0 -2
- package/lib/cli/syntax/syntax.mjs +6 -1
- package/package.json +2 -2
package/ChangeLog
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
2024.05.22, v35.27.0
|
|
2
|
+
|
|
3
|
+
fix:
|
|
4
|
+
- ec18bbbb5 @putout/plugin-eslint: convert-export-match-to-declaration: false positive
|
|
5
|
+
|
|
6
|
+
feature:
|
|
7
|
+
- e82121cc7 putout: add ability to fix broken strings
|
|
8
|
+
|
|
9
|
+
2024.05.21, v35.26.0
|
|
10
|
+
|
|
11
|
+
feature:
|
|
12
|
+
- 725e2dd6e putout: @putout/plugin-remove-useless-escape v6.0.0
|
|
13
|
+
- 1791f0979 @putout/plugin-remove-useless-escape: drop support of 🐊 < 35
|
|
14
|
+
- 9a7d278d9 @putout/plugin-remove-useless-escape: add h
|
|
15
|
+
- b4a93b98c @putout/operator-match-files: use path.parse
|
|
16
|
+
- 73e2b5f2d @putout/plugin-eslint: convert-rc-to-flat: commonjs/esm hybrid -> esm
|
|
17
|
+
- 6956a1d3a @putout/operator-declare: type
|
|
18
|
+
- d0a48a209 @putout/operator-match-files: add ability to pass options
|
|
19
|
+
- 93cc5a871 @putout/operator-declare: first things first
|
|
20
|
+
|
|
1
21
|
2024.05.21, v35.25.1
|
|
2
22
|
|
|
3
23
|
fix:
|
package/bin/tracer.mjs
CHANGED
package/lib/cli/index.js
CHANGED
|
@@ -55,9 +55,7 @@ const {PUTOUT_FILES = '', PUTOUT_PRINTER} = process.env;
|
|
|
55
55
|
const envNames = !PUTOUT_FILES ? [] : PUTOUT_FILES.split(',');
|
|
56
56
|
|
|
57
57
|
const getExitCode = (wasStop) => wasStop() ? WAS_STOP : OK;
|
|
58
|
-
|
|
59
58
|
const isStr = (a) => typeof a === 'string';
|
|
60
|
-
|
|
61
59
|
const isNoop = (a) => String(a) === String(noop);
|
|
62
60
|
|
|
63
61
|
const parseIsStop = (passedIsStop) => {
|
|
@@ -12,11 +12,16 @@ export const lintSyntax = async (source, {fix, isTS}) => {
|
|
|
12
12
|
|
|
13
13
|
async function syntaxFix(source) {
|
|
14
14
|
const {compile, keywords} = await import('goldstein');
|
|
15
|
-
const {
|
|
15
|
+
const {
|
|
16
|
+
keywordArrow,
|
|
17
|
+
keywordIf,
|
|
18
|
+
keywordBrokenString,
|
|
19
|
+
} = keywords;
|
|
16
20
|
const [error, code] = tryCatch(compile, source, {
|
|
17
21
|
keywords: {
|
|
18
22
|
keywordArrow,
|
|
19
23
|
keywordIf,
|
|
24
|
+
keywordBrokenString,
|
|
20
25
|
},
|
|
21
26
|
});
|
|
22
27
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "putout",
|
|
3
|
-
"version": "35.
|
|
3
|
+
"version": "35.27.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",
|
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
"@putout/plugin-remove-useless-assign": "^1.0.0",
|
|
160
160
|
"@putout/plugin-remove-useless-constructor": "^1.0.0",
|
|
161
161
|
"@putout/plugin-remove-useless-continue": "^2.0.0",
|
|
162
|
-
"@putout/plugin-remove-useless-escape": "^
|
|
162
|
+
"@putout/plugin-remove-useless-escape": "^6.0.0",
|
|
163
163
|
"@putout/plugin-remove-useless-functions": "^3.0.0",
|
|
164
164
|
"@putout/plugin-remove-useless-map": "^1.0.0",
|
|
165
165
|
"@putout/plugin-remove-useless-operand": "^2.0.0",
|