Change Request: Keep providing context.parserPath for flat eslint #16878
Labels
archived due to age
This issue has been archived; please open a new issue for any further discussion
core
Relates to ESLint's core APIs and features
enhancement
This change enhances an existing feature of ESLint
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: