-
-
Notifications
You must be signed in to change notification settings - Fork 397
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
Failed to load plugin in monorepo #1871
Comments
Also experiencing this issue, in an NX monorepo. Would it be an idea, to add a configuration option for the location of the |
@dev-justtrade Do you also get this error only in an editor (WebStorm) and not when running |
Is this issue specific to unicorn? I don’t think a plugin can decide where eslint can find it. This is likely a user issue. Ask for info in NX's forums |
@fregante the issue is specific to a dependency unicorn uses, because the The issue happens in the const packageResult = readPkgUp.sync();
const hasPackage = Boolean(packageResult);
const packageJson = hasPackage ? packageResult.packageJson : {}; Changing that first line to Would you agree? |
FYI I have created a PR (#2020) with the above suggested change. |
ESLint with plugin unicorn brakes in a NX monorepo when having packages on a deeper folder level.
It works fine in packages like
/libs/first-level
(path@nx-monorepo/first-level
) but throws this error when used in packages like/libs/first-level/second-level
(path@nx-monorepo/first-level/second-level
):I seems to be related to the
expiring-todo-comments
rule.The text was updated successfully, but these errors were encountered: