-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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
- Loading branch information
Showing
3 changed files
with
25 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters