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.
Note some assertion methods such as assert.equal are deprecated. Use stricter methods such as assert.strictEqual or the strict mode (assert.strict) instead.
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.
This Pull Request updates dependency
eslint-plugin-node
(source) from^6.0.0
to^7.0.0
Release Notes
v7.0.1
Compare Source
Bug fixes
node/no-unsupported-features/node-builtins
reports theprocess.emitWarning
method on Node.js>=6 <8
. It was supported since Node.js 6.0.0.v7.0.0
Compare Source
Breaking changes
>=6
.>=4.19.1
. (thenode/recommended
preset is supporting only ESLint>=5.0.0
)node/recommended
config.parserOptions.ecmaVersion
to2019
from2018
.plugins: ["node"]
.10.6.0
.assert.equal
are deprecated. Use stricter methods such asassert.strictEqual
or the strict mode (assert.strict
) instead.New rules
Buffer
orrequire("buffer").Buffer
consistently.console
orrequire("console")
consistently.process
orrequire("process")
consistently.URLSearchParams
orrequire("url").URLSearchParams
consistently.URL
orrequire("url").URL
consistently.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:
5260039
…890ee63
This PR has been generated by Renovate Bot.