The many rules for Node.js in the ESLint core will be deprecated in ESLint 7.0.0. This release includes the clone of those core rules.
✨ Enhancements
- 8788a11 added ten rules from the ESLint core:
- node/callback-return rule that corresponds to callback-return rule.
- node/global-require rule that corresponds to global-require rule.
- node/handle-callback-err rule that corresponds to handle-callback-err rule.
- node/no-mixed-requires rule that corresponds to no-mixed-requires rule.
- node/no-new-require rule that corresponds to no-new-require rule.
- node/no-path-concat rule that corresponds to no-path-concat rule, plus this recognizes template literals as well.
- node/no-process-env rule that corresponds to no-process-env rule.
- node/no-process-exit rule that corresponds to no-process-exit rule.
- node/no-restricted-require rule that corresponds to no-restricted-modules rule, but this has simplified options.
- node/no-sync rule that corresponds to no-sync rule.
- ade0b59 added node/no-restricted-import rule that is ES modules version of node/no-restricted-require rule.