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
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
Integrate eslint in project using flat config.
Setup eslint checker and pass --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.
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.
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
The text was updated successfully, but these errors were encountered: