import-js/eslint-plugin-import

Support for checking `require.resolve()`

Open

#585 opened on 2016年9月25日

GitHub で見る
 (2 comments) (4 reactions) (0 assignees)JavaScript (4,946 stars) (1,540 forks)batch import
acceptedenhancementhelp wanted

説明

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.

コントリビューターガイド

Support for checking `require.resolve()` · import-js/eslint-plugin-import#585 | Good First Issue