eslint-interactive 10.3.0 → 10.4.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.
|
@@ -1,10 +1,23 @@
|
|
|
1
|
-
#!/usr/bin/env
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// @ts-check
|
|
2
3
|
|
|
3
|
-
import {
|
|
4
|
+
import { spawnSync } from 'child_process';
|
|
5
|
+
import { resolve } from 'path';
|
|
6
|
+
import { dirname, join } from 'path';
|
|
7
|
+
import { fileURLToPath } from 'url';
|
|
4
8
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
const dir = join(dirname(fileURLToPath(import.meta.url)));
|
|
10
|
+
|
|
11
|
+
const scriptFile = resolve(dir, '_eslint-interactive.js');
|
|
12
|
+
|
|
13
|
+
spawnSync(
|
|
14
|
+
'node',
|
|
15
|
+
[
|
|
16
|
+
'--enable-source-maps',
|
|
17
|
+
'--unhandled-rejections=strict',
|
|
18
|
+
'--experimental-import-meta-resolve',
|
|
19
|
+
scriptFile,
|
|
20
|
+
...process.argv.slice(2),
|
|
21
|
+
],
|
|
22
|
+
{ stdio: 'inherit' },
|
|
23
|
+
);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-interactive",
|
|
3
3
|
"description": "The CLI tool to run `eslint --fix` for each rule",
|
|
4
|
-
"version": "10.
|
|
4
|
+
"version": "10.4.0",
|
|
5
5
|
"repository": "https://github.com/mizdra/eslint-interactive.git",
|
|
6
6
|
"author": "mizdra <pp.mizdra@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"prettier": "@mizdra/prettier-config-mizdra",
|
|
19
19
|
"packageManager": "pnpm@7.5.1",
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@babel/core": "^7.20.
|
|
21
|
+
"@babel/core": "^7.20.7",
|
|
22
22
|
"@babel/preset-typescript": "^7.18.6",
|
|
23
23
|
"@jest/types": "^29.0.1",
|
|
24
24
|
"@mizdra/eslint-config-mizdra": "^1.2.0",
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"@types/eslint": "^8.4.6",
|
|
27
27
|
"@types/estraverse": "^5.1.2",
|
|
28
28
|
"@types/estree": "^1.0.0",
|
|
29
|
+
"@types/fs-extra": "^11.0.0",
|
|
29
30
|
"@types/jest": "^29.0.0",
|
|
30
31
|
"@types/node": "^18.0.5",
|
|
31
32
|
"@types/terminal-link": "^1.2.0",
|
|
@@ -33,9 +34,11 @@
|
|
|
33
34
|
"@typescript-eslint/eslint-plugin": "^5.30.6",
|
|
34
35
|
"@typescript-eslint/parser": "^5.30.6",
|
|
35
36
|
"babel-jest": "^29.0.1",
|
|
37
|
+
"cross-env": "^7.0.3",
|
|
36
38
|
"eslint": "^8.23.0",
|
|
37
39
|
"eslint-config-prettier": "^8.5.0",
|
|
38
40
|
"eslint-plugin-import": "^2.26.0",
|
|
41
|
+
"fs-extra": "^11.1.0",
|
|
39
42
|
"jest": "^29.0.1",
|
|
40
43
|
"jest-mock-process": "^2.0.0",
|
|
41
44
|
"npm-run-all": "^4.1.5",
|
|
@@ -46,7 +49,7 @@
|
|
|
46
49
|
"typescript": "^4.8.4"
|
|
47
50
|
},
|
|
48
51
|
"dependencies": {
|
|
49
|
-
"boxen": "^7.0.
|
|
52
|
+
"boxen": "^7.0.1",
|
|
50
53
|
"cachedir": "^2.3.0",
|
|
51
54
|
"chalk": "^5.0.1",
|
|
52
55
|
"comlink": "^4.3.1",
|
|
@@ -94,7 +97,7 @@
|
|
|
94
97
|
"lint:tsc:test": "tsc -p tsconfig.test.json --noEmit",
|
|
95
98
|
"lint:eslint": "eslint --ignore-pattern '/fixtures/' --ignore-pattern '/e2e-test/' .",
|
|
96
99
|
"lint:prettier": "prettier --check .",
|
|
97
|
-
"test": "FORCE_HYPERLINK=1 NODE_OPTIONS=\"--experimental-vm-modules --experimental-import-meta-resolve $NODE_OPTIONS\" jest --colors",
|
|
100
|
+
"test": "cross-env FORCE_HYPERLINK=1 NODE_OPTIONS=\"--experimental-vm-modules --experimental-import-meta-resolve $NODE_OPTIONS\" jest --colors",
|
|
98
101
|
"postbuild:test": "./run-e2e-test.sh",
|
|
99
102
|
"postbuild:benchmark": "node benchmark/run.js"
|
|
100
103
|
}
|