@typescript-eslint/typescript-estree 8.51.1-alpha.4 → 8.51.1-alpha.6
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 +2 -3
- package/dist/create-program/createProjectProgramError.js +2 -2
- package/dist/create-program/validateDefaultProjectForFilesGlob.d.ts +1 -1
- package/dist/create-program/validateDefaultProjectForFilesGlob.js +1 -1
- package/dist/parseSettings/candidateTSConfigRootDirs.js +1 -1
- package/package.json +11 -11
package/dist/convert.js
CHANGED
|
@@ -103,7 +103,7 @@ class Converter {
|
|
|
103
103
|
? () => node[valueKey]
|
|
104
104
|
: () => {
|
|
105
105
|
if (!warned) {
|
|
106
|
-
process.emitWarning(`The '${aliasKey}' property is deprecated on ${node.type} nodes. Use '${valueKey}' instead. See https://
|
|
106
|
+
process.emitWarning(`The '${aliasKey}' property is deprecated on ${node.type} nodes. Use '${valueKey}' instead. See https://tseslint.com/key-property-deprecated.`, 'DeprecationWarning');
|
|
107
107
|
warned = true;
|
|
108
108
|
}
|
|
109
109
|
return node[valueKey];
|
|
@@ -130,8 +130,7 @@ class Converter {
|
|
|
130
130
|
if (preferredKey) {
|
|
131
131
|
message += ` Use ${preferredKey} instead.`;
|
|
132
132
|
}
|
|
133
|
-
message +=
|
|
134
|
-
' See https://typescript-eslint.io/troubleshooting/faqs/general#the-key-property-is-deprecated-on-type-nodes-use-key-instead-warnings.';
|
|
133
|
+
message += ' See https://tseslint.com/key-property-deprecated.';
|
|
135
134
|
process.emitWarning(message, 'DeprecationWarning');
|
|
136
135
|
warned = true;
|
|
137
136
|
}
|
|
@@ -29,7 +29,7 @@ function getErrorDetails(describedFilePath, parseSettings, programsForProjects)
|
|
|
29
29
|
`Either:`,
|
|
30
30
|
`- Switch to \`parserOptions.projectService\``,
|
|
31
31
|
`- Use an ESLint-specific TSConfig`,
|
|
32
|
-
`See the typescript-eslint docs for more info: https://
|
|
32
|
+
`See the typescript-eslint docs for more info: https://tseslint.com/are-project-references-supported`,
|
|
33
33
|
];
|
|
34
34
|
}
|
|
35
35
|
const { extraFileExtensions } = parseSettings;
|
|
@@ -69,6 +69,6 @@ function getErrorDetails(describedFilePath, parseSettings, programsForProjects)
|
|
|
69
69
|
`- Change ESLint's list of included files to not include this file`,
|
|
70
70
|
`- Change ${describedSpecifiers} to include this file`,
|
|
71
71
|
`- Create a new TSConfig that includes this file and include it in your parserOptions.project`,
|
|
72
|
-
`See the typescript-eslint docs for more info: https://
|
|
72
|
+
`See the typescript-eslint docs for more info: https://tseslint.com/none-of-those-tsconfigs-include-this-file`,
|
|
73
73
|
];
|
|
74
74
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const DEFAULT_PROJECT_FILES_ERROR_EXPLANATION = "\n\nHaving many files run with the default project is known to cause performance issues and slow down linting.\n\nSee https://
|
|
1
|
+
export declare const DEFAULT_PROJECT_FILES_ERROR_EXPLANATION = "\n\nHaving many files run with the default project is known to cause performance issues and slow down linting.\n\nSee https://tseslint.com/allowdefaultproject-glob-too-wide\n";
|
|
2
2
|
export declare function validateDefaultProjectForFilesGlob(allowDefaultProject: string[] | undefined): void;
|
|
@@ -6,7 +6,7 @@ exports.DEFAULT_PROJECT_FILES_ERROR_EXPLANATION = `
|
|
|
6
6
|
|
|
7
7
|
Having many files run with the default project is known to cause performance issues and slow down linting.
|
|
8
8
|
|
|
9
|
-
See https://
|
|
9
|
+
See https://tseslint.com/allowdefaultproject-glob-too-wide
|
|
10
10
|
`;
|
|
11
11
|
function validateDefaultProjectForFilesGlob(allowDefaultProject) {
|
|
12
12
|
if (!allowDefaultProject?.length) {
|
|
@@ -22,7 +22,7 @@ function getInferredTSConfigRootDir() {
|
|
|
22
22
|
'No tsconfigRootDir was set, and multiple candidate TSConfigRootDirs are present:',
|
|
23
23
|
...entries.map(candidate => ` - ${candidate}`),
|
|
24
24
|
"You'll need to explicitly set tsconfigRootDir in your parser options.",
|
|
25
|
-
'See: https://
|
|
25
|
+
'See: https://tseslint.com/parser-tsconfigrootdir',
|
|
26
26
|
].join('\n'));
|
|
27
27
|
}
|
|
28
28
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typescript-eslint/typescript-estree",
|
|
3
|
-
"version": "8.51.1-alpha.
|
|
3
|
+
"version": "8.51.1-alpha.6",
|
|
4
4
|
"description": "A parser that converts TypeScript source code into an ESTree compatible form",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -52,23 +52,23 @@
|
|
|
52
52
|
"typecheck": "yarn run -BT nx typecheck"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@typescript-eslint/project-service": "8.51.1-alpha.
|
|
56
|
-
"@typescript-eslint/tsconfig-utils": "8.51.1-alpha.
|
|
57
|
-
"@typescript-eslint/types": "8.51.1-alpha.
|
|
58
|
-
"@typescript-eslint/visitor-keys": "8.51.1-alpha.
|
|
59
|
-
"debug": "^4.3
|
|
60
|
-
"minimatch": "^9.0.
|
|
61
|
-
"semver": "^7.
|
|
55
|
+
"@typescript-eslint/project-service": "8.51.1-alpha.6",
|
|
56
|
+
"@typescript-eslint/tsconfig-utils": "8.51.1-alpha.6",
|
|
57
|
+
"@typescript-eslint/types": "8.51.1-alpha.6",
|
|
58
|
+
"@typescript-eslint/visitor-keys": "8.51.1-alpha.6",
|
|
59
|
+
"debug": "^4.4.3",
|
|
60
|
+
"minimatch": "^9.0.5",
|
|
61
|
+
"semver": "^7.7.3",
|
|
62
62
|
"tinyglobby": "^0.2.15",
|
|
63
|
-
"ts-api-utils": "^2.
|
|
63
|
+
"ts-api-utils": "^2.4.0"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@vitest/coverage-v8": "^3.
|
|
66
|
+
"@vitest/coverage-v8": "^3.2.4",
|
|
67
67
|
"eslint": "*",
|
|
68
68
|
"glob": "*",
|
|
69
69
|
"rimraf": "*",
|
|
70
70
|
"typescript": "*",
|
|
71
|
-
"vitest": "^3.
|
|
71
|
+
"vitest": "^3.2.4"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
|
74
74
|
"typescript": ">=4.8.4 <6.0.0"
|