import-js/eslint-plugin-import

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

開放

#1,913 建立於 2020年9月29日

 (7 則留言) (12 個反應) (0 位負責人)JavaScript (1,548 個分叉)batch import
enhancementhelp wanted

倉庫指標

星標
 (5,940 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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.

貢獻者指南