@typescript-eslint/eslint-plugin 8.42.1-alpha.10 → 8.42.1-alpha.11
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":"consistent-type-exports.d.ts","sourceRoot":"","sources":["../../src/rules/consistent-type-exports.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAY,MAAM,0BAA0B,CAAC;
|
1
|
+
{"version":3,"file":"consistent-type-exports.d.ts","sourceRoot":"","sources":["../../src/rules/consistent-type-exports.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAY,MAAM,0BAA0B,CAAC;AAenE,MAAM,MAAM,OAAO,GAAG;IACpB;QACE,sCAAsC,EAAE,OAAO,CAAC;KACjD;CACF,CAAC;AAgBF,MAAM,MAAM,UAAU,GAClB,yBAAyB,GACzB,oBAAoB,GACpB,eAAe,CAAC;;AAEpB,wBA0RG"}
|
@@ -34,7 +34,6 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
34
34
|
})();
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
36
36
|
const utils_1 = require("@typescript-eslint/utils");
|
37
|
-
const tsutils = __importStar(require("ts-api-utils"));
|
38
37
|
const ts = __importStar(require("typescript"));
|
39
38
|
const util_1 = require("../util");
|
40
39
|
exports.default = (0, util_1.createRule)({
|
@@ -81,16 +80,16 @@ exports.default = (0, util_1.createRule)({
|
|
81
80
|
* can't be resolved.
|
82
81
|
*/
|
83
82
|
function isSymbolTypeBased(symbol) {
|
84
|
-
|
85
|
-
|
83
|
+
while (symbol && symbol.flags & ts.SymbolFlags.Alias) {
|
84
|
+
symbol = checker.getAliasedSymbol(symbol);
|
85
|
+
if (symbol.getDeclarations()?.find(ts.isTypeOnlyImportOrExportDeclaration)) {
|
86
|
+
return true;
|
87
|
+
}
|
86
88
|
}
|
87
|
-
|
88
|
-
? checker.getAliasedSymbol(symbol)
|
89
|
-
: symbol;
|
90
|
-
if (checker.isUnknownSymbol(aliasedSymbol)) {
|
89
|
+
if (!symbol || checker.isUnknownSymbol(symbol)) {
|
91
90
|
return undefined;
|
92
91
|
}
|
93
|
-
return !(
|
92
|
+
return !(symbol.flags & ts.SymbolFlags.Value);
|
94
93
|
}
|
95
94
|
return {
|
96
95
|
ExportAllDeclaration(node) {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@typescript-eslint/eslint-plugin",
|
3
|
-
"version": "8.42.1-alpha.
|
3
|
+
"version": "8.42.1-alpha.11",
|
4
4
|
"description": "TypeScript plugin for ESLint",
|
5
5
|
"files": [
|
6
6
|
"dist",
|
@@ -59,10 +59,10 @@
|
|
59
59
|
},
|
60
60
|
"dependencies": {
|
61
61
|
"@eslint-community/regexpp": "^4.10.0",
|
62
|
-
"@typescript-eslint/scope-manager": "8.42.1-alpha.
|
63
|
-
"@typescript-eslint/type-utils": "8.42.1-alpha.
|
64
|
-
"@typescript-eslint/utils": "8.42.1-alpha.
|
65
|
-
"@typescript-eslint/visitor-keys": "8.42.1-alpha.
|
62
|
+
"@typescript-eslint/scope-manager": "8.42.1-alpha.11",
|
63
|
+
"@typescript-eslint/type-utils": "8.42.1-alpha.11",
|
64
|
+
"@typescript-eslint/utils": "8.42.1-alpha.11",
|
65
|
+
"@typescript-eslint/visitor-keys": "8.42.1-alpha.11",
|
66
66
|
"graphemer": "^1.4.0",
|
67
67
|
"ignore": "^7.0.0",
|
68
68
|
"natural-compare": "^1.4.0",
|
@@ -71,8 +71,8 @@
|
|
71
71
|
"devDependencies": {
|
72
72
|
"@types/mdast": "^4.0.3",
|
73
73
|
"@types/natural-compare": "*",
|
74
|
-
"@typescript-eslint/rule-schema-to-typescript-types": "8.42.1-alpha.
|
75
|
-
"@typescript-eslint/rule-tester": "8.42.1-alpha.
|
74
|
+
"@typescript-eslint/rule-schema-to-typescript-types": "8.42.1-alpha.11",
|
75
|
+
"@typescript-eslint/rule-tester": "8.42.1-alpha.11",
|
76
76
|
"@vitest/coverage-v8": "^3.1.3",
|
77
77
|
"ajv": "^6.12.6",
|
78
78
|
"cross-fetch": "*",
|
@@ -92,7 +92,7 @@
|
|
92
92
|
"vitest": "^3.1.3"
|
93
93
|
},
|
94
94
|
"peerDependencies": {
|
95
|
-
"@typescript-eslint/parser": "^8.42.1-alpha.
|
95
|
+
"@typescript-eslint/parser": "^8.42.1-alpha.11",
|
96
96
|
"eslint": "^8.57.0 || ^9.0.0",
|
97
97
|
"typescript": ">=4.8.4 <6.0.0"
|
98
98
|
},
|