import-js/eslint-plugin-import

Support for checking `require.resolve()`

Open

#585 创建于 2016年9月25日

在 GitHub 查看
 (2 评论) (5 反应) (0 负责人)JavaScript (1,540 fork)batch import
acceptedenhancementhelp wanted

仓库指标

Star
 (4,946 star)
PR 合并指标
 (平均合并 138天 22小时) (30 天内合并 3 个 PR)

描述

Sometimes I use require.resolve() just to resolve paths to other resources than javascript modules.

Okay, this is not a regular import, but it would be nice if this plugin could also check these paths.

Maybe it could be a new setting like 'import/check-require-resolve': true, whereas various rules related to CommonJS imports also apply here.

贡献者指南