Releases: mysticatea/eslint-plugin-node
Releases · mysticatea/eslint-plugin-node
v11.1.0
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.
v11.0.0
💥 Breaking changes
- b6cb9a0 updated
node/no-unsupported-features/node-builtins
rule based on Node.js 13.2.0. - fb9ce15 updated
node/no-unsupported-features/es-syntax
rule to recognize BigInt literal property names. - 4295f6a updated the rules that check global variables to recognize
globalThis.*
. - 04051ed updated
node/no-unsupported-features/es-builtins
rule to recognizeglobalThis
.
✨ Enhancements
- 276a9ad updated
node/no-deprecated-api
rule to allow revoked deprecations. - 972f828 updated
node/no-unsupported-features/node-builtins
rule to handle backporting properly.
🐛 Bug fixes
- 4f74fbf fixed a crash bug around dynamic import syntax.
v10.0.0
This release supports BigInt and Dynamic Imports if you are using ESLint 6.2.0 or later.
💥 Breaking Changes
- 9ea67c9 updated
node/no-unsupported-features/es-syntax
rule to recognize BigInt literals andimport()
. - b91b48d updated
node/no-unsupported-features/es-builtins
rule to recognizeBigInt
,BigInt64Array
,BigUint64Array
, andPromise.allSettled
. - b57a4f9 updated
node/file-extension-in-import
,node/no-extraneous-import
,node/no-missing-import
, andnode/no-unpublished-import
rules to recognizeimport()
. - 4b9c4d7 updated
node/no-deprecated-api
rule to recognizemodule.createRequireFromPath
. - 9c574ba updated
plugin:node/recommended
and the other configs.- It added
node/no-exports-assign
rule. - It changed
exports
global variable writable. - It enabled
node/*-import
rules in CommonJS mode as well.
- It added
✨ New rules
- a0f0ee1 added
node/no-exports-assign
rule that disallowsexports = {}
.
v9.2.0
v9.1.0
v9.0.1
v9.0.0
Update for Node.js v12 🎉
💥 Breaking Changes
- c95b2fd dropped Node.js 6 support because of End-of-Life.
- fe2343f dropped ESLint 4 support. New supported versions are
^5.16.0
and>=6.0.0
. - 7e0c2c5 updated node/no-deprecated-api rule to check new deprecated APIs in Node.js 12.
- 5d79f2d updated node/no-unsupported-features/node-builtins rule to recognize new APIs in Node.js 12.
- 02d61cf updated node/no-unsupported-features/es-builtins rule to recognize new APIs in Node.js 12.
- b94731a updated the rules for
require()
such as node/no-missing-require rule to checkrequire.resolve()
as well. - 2061413 updated
plugin:node/recommended
preset.
✨ New Rules
- a3e0e29 added node/file-extension-in-import rule which enforce the style of file extensions.
- e41a1e0 added node/prefer-promises/dns rule and node/prefer-promises/fs rule which enforce to use Promise API instead of Callback API.
v8.0.1
v8.0.0
This release focuses on supporting new things that were added between Node.js 8.7.0 and 11.0.0.
Breaking changes
- 5860795 updated
node/no-deprecated-api
rule to disallow new deprecated APIs.
Especially, it includes legacy URL API. - d153b93 updated
node/no-unsupported-features/node-builtins
rule to detect new APIs.
New rules
v7.0.1
Bug fixes
- It fixed false positive that the
node/no-unsupported-features/node-builtins
reports theprocess.emitWarning
method on Node.js>=6 <8
. It was supported since Node.js 6.0.0.