import-js/eslint-plugin-import

`no-extraneous-dependencies` doesn't support nested package.json

Open

#1913 aperta il 29 set 2020

Vedi su GitHub
 (7 commenti) (12 reazioni) (0 assegnatari)JavaScript (1540 fork)batch import
enhancementhelp wanted

Metriche repository

Star
 (4946 star)
Metriche merge PR
 (Merge medio 138g 22h) (3 PR mergiate in 30 g)

Descrizione

With Node’s ES Module support explicitly suggesting to use multiple package.json files in subfolders, I think no-extraneous-dependencies should automatically support nested package.json without further config

The nearest parent package.json is defined as the first package.json found when searching in the current folder, that folder’s parent, and so on up until the root of the volume is reached.

I know that no-extraneous-dependencies has options to manually specify each folder, but I think that this could be done automatically.

Guida contributor