Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Description
Before You File a Bug Report Please Confirm You Have Done The Following...
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
- I havesearched for related issues and found none that matched my issue.
- I haveread the FAQ and my problem is not listed.
Relevant Package
typescript-estree
Playground Link
No response
Repro Code
(sorry this isn't minimal)
I'm compiling my eslint plugin with custom rules which use the@typescript-eslint/utils
package.
While trying to upgrade to typescript-eslint 6.16, I encountered a type incompatibility with typescript 5.2.
Seefailing CI job for thedependabot upgrade
ESLint Config
No response
tsconfig
No response
Expected Result
No errors, my ESLint plugin is able to compile with TypeScript 5.2. I did not expect to be required to upgrade to TypeScript 5.3 at this time.
Actual Result
../../node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectService.d.ts:8:121 - error TS2694: Namespace 'ts' has no exported member 'JSDocParsingMode'.8 export declare function createProjectService(options: boolean | ProjectServiceOptions | undefined, jsDocParsingMode: ts.JSDocParsingMode | undefined): ProjectServiceSettings; ~~~~~~~~~~~~~~~~Found 1 error in ../../node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectService.d.ts:8
Additional Info
I noticed your note about a type incompatibility caveat in the6.13.0 release notes, but I believe my issue is distinct.
It appears thatts.JSDocParsingMode
is not available intsserverlibrary.d.ts
in typescript@5.2.2, so that reference fails when I try to compile @blueprintjs/eslint-plugin with @typescript-eslint/utils types.
Versions
package | version |
---|---|
@typescript-eslint/rule-tester | 6.16.0 |
@typescript-eslint/typescript-estree | 6.16.0 |
@typescript-eslint/utils | 6.16.0 |
TypeScript | 5.2.2 |
ESLint | 8.56.0 |
node | 18.18.1 |