New rules
- c289f18 added no-hide-core-modules rule.
This rule disallowsrequire()
expressions andimport
declarations if those import a third-party module which has the same name as core modules. Especially, if you depend on such modules indirectly andnpm
flattens dependencies, you can depend on such third-party modules before as you know it. This might cause unintentional behaviors.
Enhancements
- 91ebdf4 added supports for async functions into no-unsupported-features rule since Node.js 7.6 supported it.
Bug fixes
- 17c8ae0 fixed the behavior of no-deprecated-api rule about indirect dependencies. The no-deprecated-api rule has ignored deprecated APIs if a code imports the third-party module which has same name as a core module. However, I found it can cause confusing because of indirect dependencies and flatting dependencies.
Now, The no-deprecated-api rule does not ignore deprecated APIs even if a code imports the third-party module which has same name as a core module except it's in yourpackage.json
explicitly.
If you want to revive old behavior, please setignoreIndirectDependencies: true
option.