@typescript-eslint/typescript-estree 7.16.2-alpha.7 → 7.16.2-alpha.8
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inferSingleRun.d.ts","sourceRoot":"","sources":["../../src/parseSettings/inferSingleRun.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,eAAe,GAAG,SAAS,GAAG,OAAO,
|
|
1
|
+
{"version":3,"file":"inferSingleRun.d.ts","sourceRoot":"","sources":["../../src/parseSettings/inferSingleRun.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,eAAe,GAAG,SAAS,GAAG,OAAO,CAoD5E"}
|
|
@@ -15,6 +15,12 @@ const path_1 = require("path");
|
|
|
15
15
|
* @returns Whether this is part of a single run, rather than a long-running process.
|
|
16
16
|
*/
|
|
17
17
|
function inferSingleRun(options) {
|
|
18
|
+
// https://github.com/typescript-eslint/typescript-eslint/issues/9504
|
|
19
|
+
// There's no support (yet?) for extraFileExtensions in single-run hosts.
|
|
20
|
+
// Only watch program hosts and project service can support that.
|
|
21
|
+
if (options?.extraFileExtensions?.length) {
|
|
22
|
+
return false;
|
|
23
|
+
}
|
|
18
24
|
if (
|
|
19
25
|
// single-run implies type-aware linting - no projects means we can't be in single-run mode
|
|
20
26
|
options?.project == null ||
|
|
@@ -41,7 +47,7 @@ function inferSingleRun(options) {
|
|
|
41
47
|
process.env.CI === 'true' ||
|
|
42
48
|
// This will be true for invocations such as `npx eslint ...` and `./node_modules/.bin/eslint ...`
|
|
43
49
|
possibleEslintBinPaths.some(path => process.argv[1].endsWith((0, path_1.normalize)(path)))) {
|
|
44
|
-
return
|
|
50
|
+
return !process.argv.includes('--fix');
|
|
45
51
|
}
|
|
46
52
|
}
|
|
47
53
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inferSingleRun.js","sourceRoot":"","sources":["../../src/parseSettings/inferSingleRun.ts"],"names":[],"mappings":";;AAgBA,
|
|
1
|
+
{"version":3,"file":"inferSingleRun.js","sourceRoot":"","sources":["../../src/parseSettings/inferSingleRun.ts"],"names":[],"mappings":";;AAgBA,wCAoDC;AApED,+BAAiC;AAIjC;;;;;;;;;;;GAWG;AACH,SAAgB,cAAc,CAAC,OAAoC;IACjE,qEAAqE;IACrE,yEAAyE;IACzE,iEAAiE;IACjE,IAAI,OAAO,EAAE,mBAAmB,EAAE,MAAM,EAAE,CAAC;QACzC,OAAO,KAAK,CAAC;IACf,CAAC;IAED;IACE,2FAA2F;IAC3F,OAAO,EAAE,OAAO,IAAI,IAAI;QACxB,8FAA8F;QAC9F,uDAAuD;QACvD,OAAO,CAAC,QAAQ,IAAI,IAAI,EACxB,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC;IAED,gHAAgH;IAChH,IAAI,OAAO,CAAC,GAAG,CAAC,mBAAmB,KAAK,OAAO,EAAE,CAAC;QAChD,OAAO,KAAK,CAAC;IACf,CAAC;IACD,IAAI,OAAO,CAAC,GAAG,CAAC,mBAAmB,KAAK,MAAM,EAAE,CAAC;QAC/C,OAAO,IAAI,CAAC;IACd,CAAC;IAED,8DAA8D;IAC9D,IAAI,OAAO,CAAC,gCAAgC,EAAE,CAAC;QAC7C,MAAM,sBAAsB,GAAG;YAC7B,0BAA0B,EAAE,mBAAmB;YAC/C,mCAAmC,EAAE,YAAY;SAClD,CAAC;QACF;QACE,2FAA2F;QAC3F,OAAO,CAAC,GAAG,CAAC,EAAE,KAAK,MAAM;YACzB,kGAAkG;YAClG,sBAAsB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CACjC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAA,gBAAS,EAAC,IAAI,CAAC,CAAC,CAC1C,EACD,CAAC;YACD,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QACzC,CAAC;IACH,CAAC;IAED;;;;;;OAMG;IACH,OAAO,KAAK,CAAC;AACf,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typescript-eslint/typescript-estree",
|
|
3
|
-
"version": "7.16.2-alpha.
|
|
3
|
+
"version": "7.16.2-alpha.8",
|
|
4
4
|
"description": "A parser that converts TypeScript source code into an ESTree compatible form",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"typecheck": "tsc --noEmit"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@typescript-eslint/types": "7.16.2-alpha.
|
|
58
|
-
"@typescript-eslint/visitor-keys": "7.16.2-alpha.
|
|
57
|
+
"@typescript-eslint/types": "7.16.2-alpha.8",
|
|
58
|
+
"@typescript-eslint/visitor-keys": "7.16.2-alpha.8",
|
|
59
59
|
"debug": "^4.3.4",
|
|
60
60
|
"globby": "^11.1.0",
|
|
61
61
|
"is-glob": "^4.0.3",
|