eslint-plugin-import
eslint-plugin-import copied to clipboard
Bug: no-extraneous-packages packageDir should not override readPkgUp logic
Currently, this logic is flawed so that if you set packageDir option to either string or array - it will override the readPkgUp logic.
I think this logic should remain, here is my use case:
- Mono repo with X packages
- I am prohibiting use of
devDependenciesfor all nested packages. - Instead, all
devDependenciesare defined in the workspace/repo root. - All circular dependencies on sibling mono repo packages are defined in
peerDependencies. - This means, since it's only a peer dep - using
packageDircause this rule to miss the defined peer dep because it will only search what is defined inpackageDir.