putout 38.0.1 → 38.0.3
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 +16 -0
- package/lib/cli/exit-codes.js +2 -2
- package/lib/cli/exit-codes.mjs +2 -2
- package/lib/cli/index.js +4 -4
- package/package.json +2 -2
package/ChangeLog
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
2025.02.02, v38.0.3
|
|
2
|
+
|
|
3
|
+
feature:
|
|
4
|
+
- 363d44b68 putout: @putout/plugin-putout v23.0.0
|
|
5
|
+
- 483be8117 @putout/plugin-putout: drop support of 🐊 < 38
|
|
6
|
+
- 53c545ea0 @putout/plugin-putout: apply-fixture-name-to-message: options
|
|
7
|
+
- ff7238a73 @putout/operate: replaceWith: improve ExpressionStatement check
|
|
8
|
+
|
|
9
|
+
2025.02.01, v38.0.2
|
|
10
|
+
|
|
11
|
+
fix:
|
|
12
|
+
- 682989347 putout: exit codes: RULLER -> RULER
|
|
13
|
+
|
|
14
|
+
feature:
|
|
15
|
+
- e947022dd @putout/operator-keyword: isStatementKeyword: add
|
|
16
|
+
|
|
1
17
|
2025.01.31, v38.0.1
|
|
2
18
|
|
|
3
19
|
fix:
|
package/lib/cli/exit-codes.js
CHANGED
|
@@ -11,8 +11,8 @@ module.exports = {
|
|
|
11
11
|
INVALID_OPTION: 7,
|
|
12
12
|
CANNOT_LOAD_PROCESSOR: 8,
|
|
13
13
|
CANNOT_LOAD_FORMATTER: 9,
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
RULER_WITH_FIX: 10,
|
|
15
|
+
RULER_NO_FILES: 11,
|
|
16
16
|
INVALID_CONFIG: 12,
|
|
17
17
|
UNHANDLED: 13,
|
|
18
18
|
CANNOT_LINT_STAGED: 14,
|
package/lib/cli/exit-codes.mjs
CHANGED
|
@@ -8,8 +8,8 @@ export const WAS_STOP = 6;
|
|
|
8
8
|
export const INVALID_OPTION = 7;
|
|
9
9
|
export const CANNOT_LOAD_PROCESSOR = 8;
|
|
10
10
|
export const CANNOT_LOAD_FORMATTER = 9;
|
|
11
|
-
export const
|
|
12
|
-
export const
|
|
11
|
+
export const RULER_WITH_FIX = 10;
|
|
12
|
+
export const RULER_NO_FILES = 11;
|
|
13
13
|
export const INVALID_CONFIG = 12;
|
|
14
14
|
export const UNHANDLED = 13;
|
|
15
15
|
export const CANNOT_LINT_STAGED = 14;
|
package/lib/cli/index.js
CHANGED
|
@@ -37,8 +37,8 @@ const {
|
|
|
37
37
|
WAS_STOP,
|
|
38
38
|
INVALID_OPTION,
|
|
39
39
|
UNHANDLED,
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
RULER_WITH_FIX,
|
|
41
|
+
RULER_NO_FILES,
|
|
42
42
|
INVALID_CONFIG,
|
|
43
43
|
CANNOT_LINT_STAGED,
|
|
44
44
|
INTERACTIVE_CANCELED,
|
|
@@ -154,7 +154,7 @@ module.exports = async ({argv, halt, log, write, logError, readFile, writeFile,
|
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
if (fix && (enable || disable || enableAll || disableAll))
|
|
157
|
-
return exit(
|
|
157
|
+
return exit(RULER_WITH_FIX, Error(`'--fix' cannot be used with ruler toggler ('--enable', '--disable')`));
|
|
158
158
|
|
|
159
159
|
if (enable || disable) {
|
|
160
160
|
const {ruler} = await simpleImport('@putout/cli-ruler');
|
|
@@ -229,7 +229,7 @@ module.exports = async ({argv, halt, log, write, logError, readFile, writeFile,
|
|
|
229
229
|
const noFiles = !names.length;
|
|
230
230
|
|
|
231
231
|
if (noFiles && (enableAll || disableAll))
|
|
232
|
-
return exit(
|
|
232
|
+
return exit(RULER_NO_FILES, Error('`path` is missing for ruler toggler (`--enable-all`, `--disable-all`)'));
|
|
233
233
|
|
|
234
234
|
if (noFiles)
|
|
235
235
|
return exit();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "putout",
|
|
3
|
-
"version": "38.0.
|
|
3
|
+
"version": "38.0.3",
|
|
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",
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
"@putout/plugin-package-json": "^9.0.0",
|
|
139
139
|
"@putout/plugin-parens": "^1.0.0",
|
|
140
140
|
"@putout/plugin-promises": "^16.0.0",
|
|
141
|
-
"@putout/plugin-putout": "^
|
|
141
|
+
"@putout/plugin-putout": "^23.0.0",
|
|
142
142
|
"@putout/plugin-putout-config": "^7.0.1",
|
|
143
143
|
"@putout/plugin-regexp": "^9.0.0",
|
|
144
144
|
"@putout/plugin-remove-console": "^6.0.0",
|