Open kamranasad7 opened 2 months ago
I probably have a similar issue; it seems the "--cache" option is ignored as well (also using the flat config & eslint 9)
I'm facing the same issue. After a little investigation, I found that no command line options are passed to ESLint when we have useFlatConfig: true
/src/checkers/eslint/main.ts#L70-L78
I've fixed it temporarily in my project by adding the required options and creating a patch with patch-package
. But it'd nice to have it fixed in the next releases.
eslint = new FlatESLint({
cwd: root,
cache: eslintOptions.cache,
cacheLocation: eslintOptions.cacheLocation,
cacheStrategy: eslintOptions.cacheStrategy,
});
In fact, this is a very terrible omission. It becomes extremely difficult to work on very large projects without this option. Please take this as a high priority. We recently found this plugin and are now using it as a default dependency in development - it is extremely useful.
Describe the bug
When using flat eslint config for eslint checker, command line arguments doesn't work. Im using
--ignore-pattern "src/foo/bar"
as option in lint command and it completely ignores it and probably other options too.Reproduction
--ignore-pattern
or any other option in lint command of eslint checker.Expected behavior
The eslint checker should read eslint cli arguments and pass it to eslint object. But it is observed that cli option arguments are ignored when using flat config.
System Info
Additional context
No response
Validations