Closed uhyo closed 4 months ago
We cannot use eslint-plugin-import-access with Flat Config. 😨 This is caused by providing TypeScript Language Server Plugin from the same module.
eslint-plugin-import-access
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' } } ]
ESLint: 9.0.0 ConfigError: Config (unnamed): Key "plugins": Key "import-access": Expected an object.
plugins: { 'import-access': { ...importAccess }, },
eslint-plugin-import-access/ts-plugin
Both are breaking changes.
eslint-plugin-import-access/flat-config
We cannot use
eslint-plugin-import-access
with Flat Config. 😨 This is caused by providing TypeScript Language Server Plugin from the same module.Config
Error message
Workaround