import-js/eslint-plugin-import

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

Open

#1,913 创建于 2020年9月29日

在 GitHub 查看
 (7 评论) (12 反应) (0 负责人)JavaScript (1,540 fork)batch import
enhancementhelp wanted

仓库指标

Star
 (4,946 star)
PR 合并指标
 (平均合并 138天 22小时) (30 天内合并 3 个 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.

贡献者指南