-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Open
Labels
awaiting responseIssues waiting for a reply from the OP or another partyIssues waiting for a reply from the OP or another partybugSomething isn't workingSomething isn't working
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 have searched for related issues and found none that matched my issue.
- I have read the FAQ and my problem is not listed.
Relevant Package
typescript-eslint
Playground Link
No response
Repro Code
Because the following line doesn't have plugins: Record<string, ESLint.Plugin>
definition, upgrading from 8.34.1 to 8.40.0 fails
export interface CompatibleConfig { | |
name?: string; | |
rules?: object; | |
} |
Expected Result
I expect CompatibleConfig
interface to have plugins
property as well.
Actual Result
Fails in type level
Additional Info
Here's the log that shows there's plugins filed in recommended config
import ts from '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 |
Metadata
Metadata
Assignees
Labels
awaiting responseIssues waiting for a reply from the OP or another partyIssues waiting for a reply from the OP or another partybugSomething isn't workingSomething isn't working