Eslint Plugin Node Versions Save

Additional ESLint's rules for Node.js

v11.1.0

4 years ago

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

v11.0.0

4 years ago

💥 Breaking changes

  • b6cb9a071a7177ad625cde07541b9d2f31aab35b updated node/no-unsupported-features/node-builtins rule based on Node.js 13.2.0.
  • fb9ce15fb6d465f2cead242a5daae2599ce90142 updated node/no-unsupported-features/es-syntax rule to recognize BigInt literal property names.
  • 4295f6a45635ab61c53a8d51c19e1858a208492d updated the rules that check global variables to recognize globalThis.*.
  • 04051edfe3aa8cdb9f1aa87bbd4130021f767174 updated node/no-unsupported-features/es-builtins rule to recognize globalThis.

✨ Enhancements

  • 276a9ad0fa8d6db224aae6fe6d35146a3fac9377 updated node/no-deprecated-api rule to allow revoked deprecations.
  • 972f828d3134a9d3ec426cb11aa1cd9f66b657a2 updated node/no-unsupported-features/node-builtins rule to handle backporting properly.

🐛 Bug fixes

  • 4f74fbf3d674ab9104880954af86f40acd88fb8e fixed a crash bug around dynamic import syntax.

v10.0.0

4 years ago

This release supports BigInt and Dynamic Imports if you are using ESLint 6.2.0 or later.

💥 Breaking Changes

  • 9ea67c9e130c3da5f1ce9edc67241e1803db9264 updated node/no-unsupported-features/es-syntax rule to recognize BigInt literals and import().
  • b91b48df112426b2eb86479e4841f7008ac7cdaf updated node/no-unsupported-features/es-builtins rule to recognize BigInt, BigInt64Array, BigUint64Array, and Promise.allSettled.
  • b57a4f97dcc6ea46e3b7aa8f7e25ab59a3357375 updated node/file-extension-in-import, node/no-extraneous-import, node/no-missing-import, and node/no-unpublished-import rules to recognize import().
  • 4b9c4d7d5deb9b66a6f37c0a440131500e51624f updated node/no-deprecated-api rule to recognize module.createRequireFromPath.
  • 9c574ba29390cd5f793885d956c1c89a6d30a7d5 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.

✨ New rules

  • a0f0ee1efa860aa1633a7d84e73247e09a950b0b added node/no-exports-assign rule that disallows exports = {}.

v9.2.0

4 years ago

✨ New Rules

  • c1d5dbfbd01e1d2483fc3b970bc2ab2d61580db6 added a new rule no-callback-literal.

🐛 Bug Fixes

  • 72de3a30a1d66414eaff3603ddc74628967a9ea3 updated eslint-utils for security fix.

v9.1.0

4 years ago

✨ Features

  • fd9d19d369fcea13518ca97b669b9e358cd137a8 updated no-deprecated-api to not suggest alternative APIs if it has not supported on configured Node.js version. Thank you, @Lalem001 !

🐛 Bug Fixes

  • e5aee3c86d0f33788c9a11f9c3e01d8083291513 updated semver package to not crash on wildcard * version range.

v9.0.1

5 years ago

🐛 Bug Fixes

  • dfb4dc0202a9f9eb106b4dddb6c0f0205fabaff6 fixed the false positive of node/file-extension-in-import rule on scoped packages (#160).

v9.0.0

5 years ago

Update for Node.js v12 :tada:

💥 Breaking Changes

  • c95b2fd5959756d53c011fa1136ad9499154bfc6 dropped Node.js 6 support because of End-of-Life.
  • fe2343f2afda7931d3a980858388be4d8bf0a31b dropped ESLint 4 support. New supported versions are ^5.16.0 and >=6.0.0.
  • 7e0c2c5fa547598132441be57279e092517af08e updated node/no-deprecated-api rule to check new deprecated APIs in Node.js 12.
  • 5d79f2d24bd147f35a8e3f3d906b4567270acaab updated node/no-unsupported-features/node-builtins rule to recognize new APIs in Node.js 12.
  • 02d61cfcc1201550945a477c8fcf95572d7b6fec updated node/no-unsupported-features/es-builtins rule to recognize new APIs in Node.js 12.
  • b94731af0b89c9f0e0ca11298a1cbea40c5dacf0 updated the rules for require() such as node/no-missing-require rule to check require.resolve() as well.
  • 206141312ae7f1f2177393d55228da09da6573a4 updated plugin:node/recommended preset.

✨ New Rules

v8.0.1

5 years ago

🐛 Bug fixes

  • 62ba6425a73845c235e93d706b7d826f70853c40 fixed the wrong messages of node/no-deprecated-api rule (#142).
  • 0225b02d0f3f8dbf2d2d52577455bf9817e925ca...0593c67576c86b2cbf4990db38d1cc4707b2f309 fixed the false positives of no-unpublished-(bin|import|require) rules (#115, #126).

v8.0.0

5 years ago

This release focuses on supporting new things that were added between Node.js 8.7.0 and 11.0.0.

Breaking changes

  • 58607951356dc63cd33366282eeda98ebd587dd0 updated node/no-deprecated-api rule to disallow new deprecated APIs.
    Especially, it includes legacy URL API.
  • d153b93809c079b1be64aab706c14efb0da7991f updated node/no-unsupported-features/node-builtins rule to detect new APIs.

New rules

  • 46ed54dc3931bbf78c6b6d0761201867c74c033f added node/prefer-global/text-decoder rule for new global varaible TextDecoder.
  • 46ed54dc3931bbf78c6b6d0761201867c74c033f added node/prefer-global/text-encoder rule for new global varaible TextEncoder.

v7.0.1

5 years ago

Bug fixes

  • It fixed false positive that the node/no-unsupported-features/node-builtins reports the process.emitWarning method on Node.js >=6 <8. It was supported since Node.js 6.0.0.