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