@typescript-eslint/typescript-estree 8.70.2-alpha.8 → 8.71.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/dist/convert.js
CHANGED
|
@@ -1763,6 +1763,7 @@ class Converter {
|
|
|
1763
1763
|
case SyntaxKind.UndefinedKeyword:
|
|
1764
1764
|
case SyntaxKind.IntrinsicKeyword: {
|
|
1765
1765
|
return this.createNode(node, {
|
|
1766
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-enum-assignment
|
|
1766
1767
|
type: ts_estree_1.AST_NODE_TYPES[`TS${SyntaxKind[node.kind]}`],
|
|
1767
1768
|
});
|
|
1768
1769
|
}
|
|
@@ -2283,6 +2284,7 @@ class Converter {
|
|
|
2283
2284
|
if (node.kind === ts.SyntaxKind.JSDocFunctionType) {
|
|
2284
2285
|
this.#throwError(node, 'JSDoc types can only be used inside documentation comments.');
|
|
2285
2286
|
}
|
|
2287
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-enum-assignment
|
|
2286
2288
|
const customType = `TS${SyntaxKind[node.kind]}`;
|
|
2287
2289
|
/**
|
|
2288
2290
|
* If the "errorOnUnknownASTType" option is set to true, throw an error,
|
|
@@ -41,6 +41,7 @@ exports.getLanguageVariant = getLanguageVariant;
|
|
|
41
41
|
const node_path_1 = __importDefault(require("node:path"));
|
|
42
42
|
const ts = __importStar(require("typescript"));
|
|
43
43
|
function getScriptKind(filePath, jsx) {
|
|
44
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-enum-assignment
|
|
44
45
|
const extension = node_path_1.default.extname(filePath).toLowerCase();
|
|
45
46
|
// note - we only respect the user's jsx setting for unknown extensions
|
|
46
47
|
// this is so that we always match TS's internal script kind logic, preventing
|
|
@@ -96,6 +96,7 @@ function createParseSettings(code, tsestreeOptions = {}) {
|
|
|
96
96
|
tsestreeOptions.filePath !== '<input>'
|
|
97
97
|
? tsestreeOptions.filePath
|
|
98
98
|
: getFileName(tsestreeOptions.jsx), tsconfigRootDir);
|
|
99
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-enum-assignment
|
|
99
100
|
const extension = node_path_1.default.extname(filePath).toLowerCase();
|
|
100
101
|
const jsDocParsingMode = (() => {
|
|
101
102
|
switch (tsestreeOptions.jsDocParsingMode) {
|
package/dist/version-check.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const versions: readonly [
|
|
1
|
+
declare const versions: readonly ['4.7', '4.8', '4.9', '5.0', '5.1', '5.2', '5.3', '5.4', '5.5', '5.6', '5.7', '5.8', '5.9', '6.0'];
|
|
2
2
|
type Versions = typeof versions extends ArrayLike<infer U> ? U : never;
|
|
3
3
|
export declare const typescriptVersionIsAtLeast: Record<Versions, boolean>;
|
|
4
4
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typescript-eslint/typescript-estree",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.71.0",
|
|
4
4
|
"description": "A parser that converts TypeScript source code into an ESTree compatible form",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
"syntax"
|
|
44
44
|
],
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@typescript-eslint/project-service": "8.
|
|
47
|
-
"@typescript-eslint/tsconfig-utils": "8.
|
|
48
|
-
"@typescript-eslint/types": "8.
|
|
49
|
-
"@typescript-eslint/visitor-keys": "8.
|
|
46
|
+
"@typescript-eslint/project-service": "8.71.0",
|
|
47
|
+
"@typescript-eslint/tsconfig-utils": "8.71.0",
|
|
48
|
+
"@typescript-eslint/types": "8.71.0",
|
|
49
|
+
"@typescript-eslint/visitor-keys": "8.71.0",
|
|
50
50
|
"debug": "^4.4.3",
|
|
51
51
|
"minimatch": "^10.2.2",
|
|
52
52
|
"semver": "^7.7.3",
|