Eslint Plugin Node Versions Save

Additional ESLint's rules for Node.js

v7.0.0

5 years ago

Breaking changes

New rules

Deprecated rules

Chore

I extracted the logic which detects certain globals and modules and those properties to the eslint-utils package. I wish it to be useful for your ESLint plugins.


All commits: 5260039c77fd7e6368c1a5808f90462e5beec6f3...890ee63e98ef95ec5a27f50f42188102526d81b1

v6.0.1

6 years ago

Bug fixes

  • 234703cc58d1d8ebfdf0be367d958bf6682b299f fixed a regression that node/no-unsupported-features crashes if engines field exists but engines.node field doesn't exist in package.json (#109). Thanks @ZauberNerd !

v6.0.0

6 years ago

Breaking Changes

v5.2.0

6 years ago

Bug fixes

v5.1.1

6 years ago

Bug fixes

  • 0295a7f6608be458f5a380108bdc1406137b0ebe fixed that no-deprecated-api crashs on self-assigning of objects which have deprecated API. (#87)

v4.2.3

6 years ago

#87 was backported to v4.

Bug fixes

  • 229778730248f73990cbf7c82788030e3aa8108e fixed that no-deprecated-api crashs on self-assigning of objects which have deprecated API. (#87)

v5.1.0

6 years ago

Enhancements

  • 47e0cc280856c5414b01fb331a71df222a857dcc added resolvePaths option to no-missing-require and no-missing-import rules. You can customize paths to try for when resolving importing.

v5.0.0

7 years ago

Notable changes are 2:

  1. Node.js 8 support were added.
  2. The check of extraneous packages were separated from no-unpublish-import rule and no-unpublish-require rule.

Breaking changes

  • 3387336175d0ac5e5d47650218667320cabb3a0e updated no-unsupported-features rule for Node.js 8.
    • Node.js 8 newly supports trailing commas in functions.
    • This rule went to use 4.0.0 if you don't specify the node version. It has been 0.10.0 before.
    • This rule went to warn SharedArrayBuffer and Atomics. Currently any versions of Node.js don't support those variables.
  • 0e487f9aa7f5548e407f04f84446c9613203c962 updated no-deprecated-api rule for Node.js 8.
    • Node.js 8 deprecated vm.runInDebugContext().
    • Additionally, Node.js 8 made the official page about deprecated APIs. I realized this rule had been lacking the check of some deprecated APIs. I added those.
  • d4e6bc4bc8442208c81beee18b78e94cad149a47 removed the check about extraneous packages from no-unpublish-import rule and no-unpublish-require rule.

New rules

  • a75c63800e8e695aa836736d4ddc6c84d9076ee2 added 2 new rules, no-extraneous-import and no-extraneous-require. Those rules report require() expressions or import declarations if those import extraneous packages.
    • Those behavior were extracted from no-unpublished-require and no-unpublished-import.

Bug fixes

  • deb4f55ac99082c8b74121c9f6bb1474c9003177 fixed a bug of no-unsupported-features about semver comparison. (#78)

v4.2.2

7 years ago

Bug fixes

  • b2c68771449851c2a3473dddba387457a417e023 fixed a bug of node/no-unpublished-require and node/no-unpublished-import. Those had been handling some files such as raedme.js as published files always even if the files exist in subdirectories. npm always publishes such files of only top level.
    Thank you, @platinumazure !

v4.2.1

7 years ago

Bug fixes

  • 113c68f5621c2f1f73ca7e97145e384fc7835ee4 fixed false positive of no-missing-require and no-missing-import rules that v4.2.0 introduced.