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/recommended
preset is supporting only ESLint>=5.0.0
) - It updated the
node/recommended
config.- changed
parserOptions.ecmaVersion
to2019
from2018
. - 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.equal
are deprecated. Use stricter methods such asassert.strictEqual
or 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
Buffer
orrequire("buffer").Buffer
consistently. - node/prefer-global/console ... enforce the use of either
console
orrequire("console")
consistently. - node/prefer-global/process ... enforce the use of either
process
orrequire("process")
consistently. - node/prefer-global/url-search-params ... enforce the use of either
URLSearchParams
orrequire("url").URLSearchParams
consistently. - node/prefer-global/url ... enforce the use of either
URL
orrequire("url").URL
consistently.
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