eslint-plugin-import-x
eslint-plugin-import-x copied to clipboard
[Bug?] no-unused-modules (and deprecation)
Hey there,
so there are two possibilities: either I'm completely confused and can't see what I'm doing wrong or this is a real bug.
Setting the rule 'import-x/no-unused-modules' results in the following error in the output of vscode:
No ESLint configuration (e.g .eslintrc) found for file: .\eslint-config-404\eslint.config.js
File will not be validated. Consider running 'eslint --init' in the workspace folder eslint-config-404
Alternatively you can disable ESLint by executing the 'Disable ESLint' command.
And the usual one in the cli:
Oops! Something went wrong! :(
ESLint: 9.4.0
ESLint couldn't find a configuration file. To set up a configuration file for this project, please run: ...
While using the following setup:
node -v v20.9.0
VS Code ESLint extension v2.4.4
"@eslint/eslintrc": "^3.1.0",
"eslint": "^9.4.0",
"eslint-plugin-import-x": "^0.5.1"
Here's a reproduction of the error: https://github.com/error-four-o-four/eslint-config-404/blob/repro-no-unused-modules/eslint.config.js
Additionally
- 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