Repository navigation
Expose true filename to rules #11989
Copy link
Copy link
Closed
Labels
acceptedThere is consensus among the team that this change meets the criteria for inclusionThere is consensus among the team that this change meets the criteria for inclusionarchived due to ageThis issue has been archived; please open a new issue for any further discussionThis issue has been archived; please open a new issue for any further discussioncoreRelates to ESLint's core APIs and featuresRelates to ESLint's core APIs and featuresenhancementThis change enhances an existing feature of ESLintThis change enhances an existing feature of ESLintgood first issueGood for people who haven't worked on ESLint beforeGood for people who haven't worked on ESLint before
Description
Activity
Metadata
Metadata
Assignees
Labels
acceptedThere is consensus among the team that this change meets the criteria for inclusionThere is consensus among the team that this change meets the criteria for inclusionarchived due to ageThis issue has been archived; please open a new issue for any further discussionThis issue has been archived; please open a new issue for any further discussioncoreRelates to ESLint's core APIs and featuresRelates to ESLint's core APIs and featuresenhancementThis change enhances an existing feature of ESLintThis change enhances an existing feature of ESLintgood first issueGood for people who haven't worked on ESLint beforeGood for people who haven't worked on ESLint before
Type
Projects
- StatusShow more project fieldsComplete
The version of ESLint you are using.
6.0.1
The problem you want to solve.
This. Some rules, like eslint-plugin-import's no-unresolved, need to know the true path of the current file, not a path that's been potentially assembled using a processor's named code block.
Your take on the correct solution to problem.
I'm not entirely sure, but perhaps a new option to
context.getFilename()to return the true path rather than the one potentially created from a processor's named code blocks.Are you willing to submit a pull request to implement this change?
Yes.