Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Closed as not planned
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-eslint
Playground Link
No response
Repro Code
Because the following line doesn't haveplugins: Record<string, ESLint.Plugin> definition, upgrading from 8.34.1 to 8.40.0 fails
| exportinterfaceCompatibleConfig{ | |
| name?:string; | |
| rules?:object; | |
| } |
Expected Result
I expectCompatibleConfig interface to haveplugins property as well.
Actual Result
Fails in type level
Additional Info
Here's the log that shows there's plugins filed in recommended config
importtsfrom'typescript-eslint';console.log(ts.configs.recommended);
[{name:'typescript-eslint/base',languageOptions:{parser:[Object],sourceType:'module'},plugins:{'@typescript-eslint':[Object]}},{files:['**/*.ts','**/*.tsx','**/*.mts','**/*.cts'],rules:{'constructor-super':'off','getter-return':'off','no-class-assign':'off','no-const-assign':'off','no-dupe-args':'off','no-dupe-class-members':'off','no-dupe-keys':'off','no-func-assign':'off','no-import-assign':'off','no-new-native-nonconstructor':'off','no-new-symbol':'off','no-obj-calls':'off','no-redeclare':'off','no-setter-return':'off','no-this-before-super':'off','no-undef':'off','no-unreachable':'off','no-unsafe-negation':'off','no-var':'error','no-with':'off','prefer-const':'error','prefer-rest-params':'error','prefer-spread':'error'},name:'typescript-eslint/eslint-recommended'},{name:'typescript-eslint/recommended',rules:{'@typescript-eslint/ban-ts-comment':'error','no-array-constructor':'off','@typescript-eslint/no-array-constructor':'error','@typescript-eslint/no-duplicate-enum-values':'error','@typescript-eslint/no-empty-object-type':'error','@typescript-eslint/no-explicit-any':'error','@typescript-eslint/no-extra-non-null-assertion':'error','@typescript-eslint/no-misused-new':'error','@typescript-eslint/no-namespace':'error','@typescript-eslint/no-non-null-asserted-optional-chain':'error','@typescript-eslint/no-require-imports':'error','@typescript-eslint/no-this-alias':'error','@typescript-eslint/no-unnecessary-type-constraint':'error','@typescript-eslint/no-unsafe-declaration-merging':'error','@typescript-eslint/no-unsafe-function-type':'error','no-unused-expressions':'off','@typescript-eslint/no-unused-expressions':'error','no-unused-vars':'off','@typescript-eslint/no-unused-vars':'error','@typescript-eslint/no-wrapper-object-types':'error','@typescript-eslint/prefer-as-const':'error','@typescript-eslint/prefer-namespace-keyword':'error','@typescript-eslint/triple-slash-reference':'error'}}]
Versions
| package | version |
|---|---|
@typescript-eslint/eslint-plugin | 8.40.0 |
@typescript-eslint/parser | 8.40.0 |
TypeScript | 5.8.3 |
ESLint | 9.33.0 |
node | 20.18.0 |