You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you depend on third-party modules which have the same name as a core module indirectly, you may use the third-party modules instead of core modules silently because of flattening node_modules. This might cause unintentional behaviors.
This rule reports use of such third-party modules.
allow is the option to allow to hide specific core modules. E.g. allow: ["util"].
checkMode
"all" disallows such third-party modules.
"directOnly" disallows such third-party modules but allows those if those are in indirect dependencies.
"indirectOnly" (default) disallows such third-party modules but allows those if those are in direct dependencies. This option allows those if you wrote those in package.json explicitly.
The text was updated successfully, but these errors were encountered:
…ea#139)
* feat: Use enhanced-resolve for imports
* chore: Improve the metadata from "ImportTarget"
* chore: remove "enhanced-resolve" from "no-hide-core-modules"
* test: Add a test for mysticatea#66
* feat!: Allow ts paths aliases (mysticatea#84)
* feat: Allow for "allowImportingTsExtensions" (mysticatea#134)
* feat: Add test for import maps (mysticatea#147)
* Update lib/util/import-target.js
Co-authored-by: Sebastian Good <[email protected]>
* test: Add test for n/no-missing-require eslint/use-at-your-own-risk
* chore: Remove esbuild
* feat: Allow for settings.cwd to be used before process.cwd
* chore: replace reference to eslint/use-at-your-own-risk
* chore: Remove more unused packages
* chore: update rule test options to flat config
* fix: incorrect env in tests
---------
Co-authored-by: 唯然 <[email protected]>
If you depend on third-party modules which have the same name as a core module indirectly, you may use the third-party modules instead of core modules silently because of flattening
node_modules
. This might cause unintentional behaviors.This rule reports use of such third-party modules.
This rule ignores deprecated core modules.
allow
is the option to allow to hide specific core modules. E.g.allow: ["util"]
.checkMode
"all"
disallows such third-party modules."directOnly"
disallows such third-party modules but allows those if those are in indirect dependencies."indirectOnly"
(default) disallows such third-party modules but allows those if those are in direct dependencies. This option allows those if you wrote those inpackage.json
explicitly.The text was updated successfully, but these errors were encountered: