Open guoliang opened 1 week ago
What version of the import plugin are you using?
it's possible it's coming from the angular eslint parser - can you narrow it down to what source code is causing the problem?
@ljharb
I'm using eslint-import-plugin: 2.31.0
Modified the setup also. Seems like I need to import it as following to get it to work
...
const importPlugin = require("eslint-plugin-import");
module.exports = [
eslintConfigPrettier,
...tseslint.config(
{
files: ["**/*.ts"],
extends: [
eslint.configs.recommended,
...tseslint.configs.recommended,
...tseslint.configs.stylistic,
...angular.configs.tsRecommended,
],
plugins: {
import: importPlugin,
},
...
So you did get it to work? or are you saying it doesn't when you include the import rules?
I'm trying to update to
ESLint 9
and switch over to the flat config.I'm getting the following error from
eslint-import-plugin
. Not sure why this is happening, so any help is appreciated.My flat eslint.config.js looks as following