Releases: mysticatea/eslint-plugin-node
Releases · mysticatea/eslint-plugin-node
v7.0.0
Breaking changes
- It dropped the support of Node.js 4. Now it requires
>=6. - It dropped the support of ESLint 3. Now it requires
>=4.19.1. (thenode/recommendedpreset is supporting only ESLint>=5.0.0) - It updated the
node/recommendedconfig.- changed
parserOptions.ecmaVersionto2019from2018. - added
plugins: ["node"]. - removed a deprecated rule: node/no-unsupported-features.
- added three new rules:
- changed
- It updated the node/no-deprecated-api rule to support Node.js up to
10.6.0.- Note some assertion methods such as
assert.equalare deprecated. Use stricter methods such asassert.strictEqualor the strict mode (assert.strict) instead.
- Note some assertion methods such as
New rules
- node/no-unsupported-features/es-builtins ... disallow unsupported ECMAScript built-in globals on the configured Node.js version.
- node/no-unsupported-features/es-syntax ... disallow unsupported ECMAScript syntax on the configured Node.js version.
- node/no-unsupported-features/node-builtins ... disallow unsupported Node.js built-in modules and globals on the configured Node.js version.
- node/prefer-global/buffer ... enforce the use of either
Bufferorrequire("buffer").Bufferconsistently. - node/prefer-global/console ... enforce the use of either
consoleorrequire("console")consistently. - node/prefer-global/process ... enforce the use of either
processorrequire("process")consistently. - node/prefer-global/url-search-params ... enforce the use of either
URLSearchParamsorrequire("url").URLSearchParamsconsistently. - node/prefer-global/url ... enforce the use of either
URLorrequire("url").URLconsistently.
Deprecated rules
- node/no-unsupported-features was replaced by node/no-unsupported-features/es-builtins and node/no-unsupported-features/es-syntax.
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: 5260039...890ee63
v6.0.1
Bug fixes
- 234703c fixed a regression that
node/no-unsupported-featurescrashes ifenginesfield exists butengines.nodefield doesn't exist in package.json (#109). Thanks @ZauberNerd !
v6.0.0
Breaking Changes
- 49c060a updated
node/no-unsupported-featuresrule to support ES2018 syntactic features. Now the rule recognizes the following syntax:- Rest/Spread Proeprties (since Node.js
8.3.0) - Illegal Escape Sequences in Taggled Templates (since Node.js
9.0.0) - RegExp 's' Flag (since Node.js
9.0.0) - RegExp Lookbehind Assertions (since Node.js
9.0.0) - RegExp Named Capture Groups (since Node.js
10.0.0) - RegExp Unicode Property Escapes (since Node.js
10.0.0) - Asynchronous Iteration (since Node.js
10.0.0)
- Rest/Spread Proeprties (since Node.js
- 400e20a updated
node/no-deprecated-apirule to support new deprecated APIs. Now the rule recognizes the following APIs:async_hooks.currentIdasync_hooks.triggerIdmodule._debugpath._makeLongtls.parseCertString
- e8d757b updated
plugin:node/recommendedpreset.
v5.2.0
Bug fixes
- e7878e9 fixed
no-deprecated-apithat has overlookedGLOBALandrootglobal variables which are deprecated in Node.js 6.0.0. (#92)
v5.1.1
v4.2.3
v5.1.0
v5.0.0
Notable changes are 2:
- Node.js 8 support were added.
- The check of extraneous packages were separated from
no-unpublish-importrule andno-unpublish-requirerule.
Breaking changes
- 3387336 updated
no-unsupported-featuresrule for Node.js 8.- Node.js 8 newly supports trailing commas in functions.
- This rule went to use
4.0.0if you don't specify the node version. It has been0.10.0before. - This rule went to warn
SharedArrayBufferandAtomics. Currently any versions of Node.js don't support those variables.
- 0e487f9 updated
no-deprecated-apirule 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.
- Node.js 8 deprecated
- d4e6bc4 removed the check about extraneous packages from
no-unpublish-importrule andno-unpublish-requirerule.- The extraneous packages are checked by no-extraneous-import rule and no-extraneous-require rule.
New rules
- a75c638 added 2 new rules, no-extraneous-import and no-extraneous-require. Those rules report
require()expressions orimportdeclarations if those import extraneous packages.- Those behavior were extracted from
no-unpublished-requireandno-unpublished-import.
- Those behavior were extracted from
Bug fixes
v4.2.2
Bug fixes
- b2c6877 fixed a bug of
node/no-unpublished-requireandnode/no-unpublished-import. Those had been handling some files such asraedme.jsas published files always even if the files exist in subdirectories.npmalways publishes such files of only top level.
Thank you, @platinumazure !