Additional ESLint's rules for Node.js
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.
node/no-unsupported-features/node-builtins
rule based on Node.js 13.2.0.node/no-unsupported-features/es-syntax
rule to recognize BigInt literal property names.globalThis.*
.node/no-unsupported-features/es-builtins
rule to recognize globalThis
.node/no-deprecated-api
rule to allow revoked deprecations.node/no-unsupported-features/node-builtins
rule to handle backporting properly.This release supports BigInt and Dynamic Imports if you are using ESLint 6.2.0 or later.
node/no-unsupported-features/es-syntax
rule to recognize BigInt literals and import()
.node/no-unsupported-features/es-builtins
rule to recognize BigInt
, BigInt64Array
, BigUint64Array
, and Promise.allSettled
.node/file-extension-in-import
, node/no-extraneous-import
, node/no-missing-import
, and node/no-unpublished-import
rules to recognize import()
.node/no-deprecated-api
rule to recognize module.createRequireFromPath
.plugin:node/recommended
and the other configs.
node/no-exports-assign
rule.exports
global variable writable.node/*-import
rules in CommonJS mode as well.node/no-exports-assign
rule that disallows exports = {}
.no-deprecated-api
to not suggest alternative APIs if it has not supported on configured Node.js version. Thank you, @Lalem001 !semver
package to not crash on wildcard *
version range.Update for Node.js v12 :tada:
^5.16.0
and >=6.0.0
.require()
such as node/no-missing-require rule to check require.resolve()
as well.plugin:node/recommended
preset.This release focuses on supporting new things that were added between Node.js 8.7.0 and 11.0.0.
node/no-deprecated-api
rule to disallow new deprecated APIs.node/no-unsupported-features/node-builtins
rule to detect new APIs.node/prefer-global/text-decoder
rule for new global varaible TextDecoder
.node/prefer-global/text-encoder
rule for new global varaible TextEncoder
.