import-js/eslint-plugin-import

Support for checking `require.resolve()`

Open

#585 aperta il 25 set 2016

Vedi su GitHub
 (2 commenti) (5 reazioni) (0 assegnatari)JavaScript (1540 fork)batch import
acceptedenhancementhelp wanted

Metriche repository

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

Descrizione

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.

Guida contributor