eslint: investigate eslint-plugin-import
false negatives & eslint-plugin-import-x
alternative
#1273
Labels
maintenance
Code refactoring, project structure, dev tooling (storybook, dev server, npm tasks...)
Context
With #1141, we have moved to eslint 9.0 and we have disabled a few rules from the import plugin:
import/named
which checks named imports,import/no-unresolved
which makes sure modules are resolved,import/extensions
which enforces extension usage for imports.Some of these rules have been disabled because TypeScript already checks that but as pointed out by @Galimede, if we extract this config later on so that it can be used in any Clever Cloud JS project, we cannot rely on TypeScript only and maybe these rules should be enabled (or at least maybe we should provide a way to enable them).
The issue is that
named
andno-unresolved
have been disabled because they also return false negatives.I couldn't understand why, it might be related to some CJS vs ESM shenanigan.
We should take time to understand the issues with these rules and find the proper settings or investigate using the fork of this plugin (
eslint-plugin-import-x
) which may be more reliable.The text was updated successfully, but these errors were encountered: