You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For IDE with a standard name (eslint.config.mjs). It contains more warnings.
For CI, Vite Checher with disabled some rules.
I set lintCommand to eslint -c eslint.config.ide.mjs ...
With an old ESLint (below 9 version) Vite Checker use my different ESLint config and I don't see any excess warnings in a terminal or Vite Checker UI.
But with the ESLint 9 when I use useFlatConfig flag lintCommand doesn't work. dev.overrideConfig doesn't work with useFlatConfig too.
Reproduction
Set useFlatConfig: true, lintCommand: "eslint -c eslint.config.ide.mjs ."
Expected behavior
When using useFlatConfig Vite Checker should process lintCommand and dev.overrideConfig.
Additional configured options from the lintCommand & overrideConfig are not passed to the FlatESLint constructor. The FlatESLint constructor is just an alias to ESLint in ESLint 9. However, if I just use the the default option, I still get errors thrown about no longer valid options generated by translatedOptions
Error: Invalid Options:
- Unknown options: extensions, ignorePath, reportUnusedDisableDirectives, resolvePluginsRelativeTo, rulePaths, useEslintrc
- 'extensions' has been removed.
- 'resolvePluginsRelativeTo' has been removed.
- 'ignorePath' has been removed.
- 'rulePaths' has been removed. Please define your rules using plugins.
- 'reportUnusedDisableDirectives' has been removed. Please use the 'overrideConfig.linterOptions.reportUnusedDisableDirectives' option instead.
I cannot pass undefined for those options in overrideConfig because eslint is looking for the presence of the keys using Object.keys
Describe the bug
I use different ESLint config files:
eslint.config.mjs
). It contains more warnings.I set
lintCommand
toeslint -c eslint.config.ide.mjs ...
With an old ESLint (below 9 version) Vite Checker use my different ESLint config and I don't see any excess warnings in a terminal or Vite Checker UI.
But with the ESLint 9 when I use
useFlatConfig
flaglintCommand
doesn't work.dev.overrideConfig
doesn't work withuseFlatConfig
too.Reproduction
Set
useFlatConfig: true, lintCommand: "eslint -c eslint.config.ide.mjs ."
Expected behavior
When using
useFlatConfig
Vite Checker should processlintCommand
anddev.overrideConfig
.System Info
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: