Skip to content
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

[Fix] no-extraneous-dependencies: allow incorrect paths in packageDir #3012

Merged

Commits on Jun 3, 2024

  1. [Fix] no-extraneous-dependencies: allow wrong path

    - If you pass only one path to a package.json file, then this path
    should be correct
    - If you pass multiple paths, there are some situations when those paths
    point to a wrong path, this happens typically in a nx monorepo with husky
    -- NX will run eslint in the projects folder, so we need to grab the
    root package.json
    -- Husky will run in the root folder, so one of the path given will be
    an incorrect path, but we do not want throw there, otherwise the rull
    will fail
    U812320 authored and ljharb committed Jun 3, 2024
    Configuration menu
    Copy the full SHA
    fc361a9 View commit details
    Browse the repository at this point in the history