Missing support for hoisted packages #11238
Labels
archived due to age
This issue has been archived; please open a new issue for any further discussion
bug
ESLint is working incorrectly
triage
An ESLint team member will look at this issue soon
Tell us about your environment
What parser (default, Babel-ESLint, etc.) are you using?
irrelevant
Please show your full configuration:
irrelevant
What did you do? Please include the actual source code causing the issue, as well as the command that you used to run ESLint.
irrelevant, any eslint configuration that refers to a eslint plugin or preset that has been hoisted will fail to resolve it.
The same happens if
eslint
gets hoisted, but one of the plugins doesn't.What did you expect to happen?
Eslint should use the standard node.js module resolution system to make sure it can find hoisted modules.
What actually happened? Please include the actual, raw output from ESLint.
Eslint doesn't seem to use the standard module resolution system and fails to resolve the location of the requested eslint plugins and presets.
Are you willing to submit a pull request to fix this bug?
no, discussion is needed, some of it happened years ago here
I think a possible solution would be to implement #6237, Babel does the same and allows to resolve the problem by having the plugins and presets referred to as
require.resolve('module-name-here')
The text was updated successfully, but these errors were encountered: