-
Notifications
You must be signed in to change notification settings - Fork 12
Closed
Description
We cannot use eslint-plugin-import-access with Flat Config. 😨 This is caused by providing TypeScript Language Server Plugin from the same module.
Config
import typescriptEslintParser from "@typescript-eslint/parser";
import importAccess from 'eslint-plugin-import-access';
export default [
{
languageOptions: {
parser: typescriptEslintParser,
},
files: ['**/*.ts'],
plugins: {
'import-access': importAccess,
},
rules: {
'import-access/jsdoc': 'error'
}
}
]Error message
ESLint: 9.0.0
ConfigError: Config (unnamed): Key "plugins": Key "import-access": Expected an object.
Workaround
plugins: {
'import-access': { ...importAccess },
},Metadata
Metadata
Assignees
Labels
No labels