Last 12 weeks · 0 commits
4 of 6 standards met
I had the need to allow a specific module to require upwards, so I added a private option in https://github.com/sindresorhus/strict-import/commit/64ac0d0530d5fe0f35bf33665f8e3ad16da6beb5. I made it private because I'm not totally happy with it. It only works for top-level imports. So you can allow to be searched upwards by including in the option, but if imports a module name , there's no way to allow specifically, other than allowing any module from . Context: https://github.com/lukechilds/hyperdex/commit/d54a47c921e053620a76c57c9e3534f4f2dbe42e
Repository: sindresorhus/strict-import. Description: Prevent `require` from searching upwards for required modules Stars: 94, Forks: 2. Primary language: JavaScript. Languages: JavaScript (100%). License: MIT. Topics: import, node-modules, nodejs, npm-package, require. Open PRs: 0, open issues: 1. Last activity: 5y ago. Community health: 71%. Top contributors: sindresorhus, itaisteinherz, Richienb.