Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Error: Cannot read config package for shareable config using global eslint #4822
Running the following steps, which currently installs ESLint v1.10.3, results in the following error:
If the last command is replaced with
This has a few obvious workarounds:
There are likely other workarounds that I haven't considered. Even if such workarounds are generally straightforward, the current situation leaves some developers with an error message that they have to investigate and fix. It would be great if this pain could be avoided by a change to ESLint. For example, would it be possible to resolve referenced modules (config, plugin, etc.) relative to the current package and fallback to global resolution only if local resolution fails?
Thanks for considering,
Note: There is some overlap with #3458, and a solution to either issue might affect the other.
@kevinoid Thanks for the issue! If you're reporting a bug, please be sure to include:
Requesting a new rule? Please see Proposing a New Rule for instructions.
Thanks @mysticatea, that is very helpful indeed.
@nzakas, if this is a known issue, is it documented anywhere? Perhaps I overlooked it. It seems to be affecting a lot of people and certainly took a while for me to figure out. Would you consider adding an explanation to the error message which is printed when require fails so users are at least pointed in the right direction?