javierbrea / eslint-plugin-boundaries

Eslint plugin checking architecture boundaries between elements
MIT License
473 stars 9 forks source link

Remove `is-core-module` dependency #334

Open wojtekmaj opened 3 days ago

wojtekmaj commented 3 days ago

Is your feature request related to a problem? Please describe.

Node.js from v6.13.0, v8.10.0, v9.3.0 includes module.builtinModules which we can use to natively check if some module belongs to Node.js core or not. There's no need to use external packages to do so.

Describe the solution you'd like

Use module.builtinModules.

Describe alternatives you've considered

n/a