putout 35.37.0 → 36.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/ChangeLog +15 -1
- package/README.md +0 -1
- package/lib/cli/index.js +1 -2
- package/lib/cli/process-file.js +2 -2
- package/package.json +3 -2
package/ChangeLog
CHANGED
|
@@ -1,8 +1,22 @@
|
|
|
1
|
+
2024.07.16, v36.0.0
|
|
2
|
+
|
|
3
|
+
feature:
|
|
4
|
+
- 9267d5340 putout: get rid of PUTOUT_PRINTER (#213)
|
|
5
|
+
- fa489a918 @putout/test: get rid of PUTOUT_PRINTER
|
|
6
|
+
|
|
7
|
+
2024.07.15, v35.37.1
|
|
8
|
+
|
|
9
|
+
feature:
|
|
10
|
+
- 00d3a41c2 @putout/engine-reporter: simple-import: import from putout (#214)
|
|
11
|
+
- d15b34e88 @putout/engine-report: convert to ESLint v9
|
|
12
|
+
- f5e2807ab @putout/plugin-remove-quotes-from-import-assertions: add
|
|
13
|
+
- 075951d16 @putout/compare: improve support of __imports
|
|
14
|
+
|
|
1
15
|
2024.07.14, v35.37.0
|
|
2
16
|
|
|
3
17
|
feature:
|
|
4
18
|
- e7eb5dc4e @putout/plugin-remove-quotes-from-import-assertions: add
|
|
5
|
-
-
|
|
19
|
+
- 075951d16 @putout/compare: improve support of __imports
|
|
6
20
|
- 4e57c70e7 @putout/plugin-remove-unused-variables: try-catch: destructuring
|
|
7
21
|
- d19aae67f @putout/plugin-promises: apply-with-resolvers: add
|
|
8
22
|
- 4b556cb10 putout: just-camel-case v6.2.0
|
package/README.md
CHANGED
|
@@ -226,7 +226,6 @@ putout lib --plugins remove-debugger,remove-unused-variables
|
|
|
226
226
|
- `ESLINT_CONFIG_FILE` - path to **ESLint** config file;
|
|
227
227
|
- `NO_ESLINT` - do not run **ESLint** after 🐊**Putout**;
|
|
228
228
|
- `NO_ESLINT_WARNINGS` - do not show **ESLint** warnings;
|
|
229
|
-
- `PUTOUT_PRINTER` - force 🐊**Putout** to use printers like `babel`, `putout` and `recast` to `parse()` and `print()`, useful for Babel Plugins to make locations output more accurate.
|
|
230
229
|
|
|
231
230
|
```sh
|
|
232
231
|
PUTOUT_FILES=lib,test putout --fix
|
package/lib/cli/index.js
CHANGED
|
@@ -51,7 +51,7 @@ const {isSupported} = supportedFiles;
|
|
|
51
51
|
const getFormatter = nanomemoize(require('@putout/engine-reporter/formatter').getFormatter);
|
|
52
52
|
|
|
53
53
|
const cwd = process.cwd();
|
|
54
|
-
const {PUTOUT_FILES = ''
|
|
54
|
+
const {PUTOUT_FILES = ''} = process.env;
|
|
55
55
|
const envNames = !PUTOUT_FILES ? [] : PUTOUT_FILES.split(',');
|
|
56
56
|
|
|
57
57
|
const getExitCode = (wasStop) => wasStop() ? WAS_STOP : OK;
|
|
@@ -257,7 +257,6 @@ module.exports = async ({argv, halt, log, write, logError, readFile, writeFile,
|
|
|
257
257
|
write,
|
|
258
258
|
transform,
|
|
259
259
|
plugins,
|
|
260
|
-
printer: PUTOUT_PRINTER,
|
|
261
260
|
};
|
|
262
261
|
|
|
263
262
|
const {places, exited} = await run({
|
package/lib/cli/process-file.js
CHANGED
|
@@ -17,10 +17,10 @@ const getMatchedOptions = (name, options) => {
|
|
|
17
17
|
return merge(options, parseMatch(name, options.match));
|
|
18
18
|
};
|
|
19
19
|
|
|
20
|
-
module.exports = ({fix, fixCount, isFlow, logError, raw
|
|
20
|
+
module.exports = ({fix, fixCount, isFlow, logError, raw}) => async function processFile({name, source, startLine, options, again}) {
|
|
21
21
|
const {configurePrinter} = await import('./printer/printer.mjs');
|
|
22
22
|
const isTS = /\.tsx?$/.test(name) || /{tsx?}$/.test(name);
|
|
23
|
-
const matchedOptions = getMatchedOptions(name, options);
|
|
23
|
+
const {printer, ...matchedOptions} = getMatchedOptions(name, options);
|
|
24
24
|
|
|
25
25
|
const [e, result] = await tryToCatch(putoutAsync, source, {
|
|
26
26
|
fix,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "putout",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "36.0.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",
|
|
@@ -25,7 +25,8 @@
|
|
|
25
25
|
"./transform": "./lib/transform.js",
|
|
26
26
|
"./find-places": "./lib/find-places.js",
|
|
27
27
|
"./register": "./lib/loader/register.mjs",
|
|
28
|
-
"./ignores": "./lib/ignores.js"
|
|
28
|
+
"./ignores": "./lib/ignores.js",
|
|
29
|
+
"./simple-import": "./lib/cli/simple-import.js"
|
|
29
30
|
},
|
|
30
31
|
"bin": {
|
|
31
32
|
"putout": "bin/tracer.mjs"
|