-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change Request: Keep providing context.parserPath for flat eslint #16878
Comments
I don't think eslint can provide
Rules can already switch to |
Thanks for the clarification. |
@DMartens you probably want to see this Feature Request Support new ESLint flat config |
@CallMeLaNN thanks for the link but that issue is primarily about providing configs for the flat config. |
ESLint version
8.33.0
What problem do you want to solve?
Currently eslint provides
context.parserPath
to rules.But this property which is required for rules from eslint-plugin-import is no longer available when using the flat config.
According to #13481 it should be available, as it is still in phase 2 (" Ensure context.parserPath still works in Linter for FlatConfigArray (for now)") and not in phase 5 where will be removed.
It seems that currently the linter just passes an explicit undefined for the parserPath for flat configs.
What do you think is the correct solution?
Keep passing
context.parserPath
until it is removed or provide an alternative.Participation
Additional comments
No response
The text was updated successfully, but these errors were encountered: