python-module
python-module copied to clipboard
chore(deps): update devdependency eslint-plugin-node to v11
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| eslint-plugin-node | ^6.0.0 -> ^11.1.0 |
Release Notes
mysticatea/eslint-plugin-node (eslint-plugin-node)
v11.1.0
The many rules for Node.js in the ESLint core will be deprecated in ESLint 7.0.0. This release includes the clone of those core rules.
β¨ Enhancements
8788a11added ten rules from the ESLint core:- node/callback-return rule that corresponds to callback-return rule.
- node/global-require rule that corresponds to global-require rule.
- node/handle-callback-err rule that corresponds to handle-callback-err rule.
- node/no-mixed-requires rule that corresponds to no-mixed-requires rule.
- node/no-new-require rule that corresponds to no-new-require rule.
- node/no-path-concat rule that corresponds to no-path-concat rule, plus this recognizes template literals as well.
- node/no-process-env rule that corresponds to no-process-env rule.
- node/no-process-exit rule that corresponds to no-process-exit rule.
- node/no-restricted-require rule that corresponds to no-restricted-modules rule, but this has simplified options.
- node/no-sync rule that corresponds to no-sync rule.
ade0b59added node/no-restricted-import rule that is ES modules version of node/no-restricted-require rule.
v11.0.0
π₯ Breaking changes
b6cb9a0updatednode/no-unsupported-features/node-builtinsrule based on Node.js 13.2.0.fb9ce15updatednode/no-unsupported-features/es-syntaxrule to recognize BigInt literal property names.4295f6aupdated the rules that check global variables to recognizeglobalThis.*.04051edupdatednode/no-unsupported-features/es-builtinsrule to recognizeglobalThis.
β¨ Enhancements
276a9adupdatednode/no-deprecated-apirule to allow revoked deprecations.972f828updatednode/no-unsupported-features/node-builtinsrule to handle backporting properly.
π Bug fixes
4f74fbffixed a crash bug around dynamic import syntax.
v10.0.0
This release supports BigInt and Dynamic Imports if you are using ESLint 6.2.0 or later.
π₯ Breaking Changes
9ea67c9updatednode/no-unsupported-features/es-syntaxrule to recognize BigInt literals andimport().b91b48dupdatednode/no-unsupported-features/es-builtinsrule to recognizeBigInt,BigInt64Array,BigUint64Array, andPromise.allSettled.b57a4f9updatednode/file-extension-in-import,node/no-extraneous-import,node/no-missing-import, andnode/no-unpublished-importrules to recognizeimport().4b9c4d7updatednode/no-deprecated-apirule to recognizemodule.createRequireFromPath.9c574baupdatedplugin:node/recommendedand the other configs.- It added
node/no-exports-assignrule. - It changed
exportsglobal variable writable. - It enabled
node/*-importrules in CommonJS mode as well.
- It added
β¨ New rules
a0f0ee1addednode/no-exports-assignrule that disallowsexports = {}.
v9.2.0
β¨ New Rules
c1d5dbfadded a new ruleno-callback-literal.
π Bug Fixes
72de3a3updatedeslint-utilsfor security fix.
v9.1.0
β¨ Features
fd9d19dupdatedno-deprecated-apito not suggest alternative APIs if it has not supported on configured Node.js version. Thank you, @βLalem001 !
π Bug Fixes
e5aee3cupdatedsemverpackage to not crash on wildcard*version range.
v9.0.1
π Bug Fixes
dfb4dc0fixed the false positive ofnode/file-extension-in-importrule on scoped packages (#β160).
v9.0.0
Update for Node.js v12 :tada:
π₯ Breaking Changes
c95b2fddropped Node.js 6 support because of End-of-Life.fe2343fdropped ESLint 4 support. New supported versions are^5.16.0and>=6.0.0.7e0c2c5updated node/no-deprecated-api rule to check new deprecated APIs in Node.js 12.5d79f2dupdated node/no-unsupported-features/node-builtins rule to recognize new APIs in Node.js 12.02d61cfupdated node/no-unsupported-features/es-builtins rule to recognize new APIs in Node.js 12.b94731aupdated the rules forrequire()such as node/no-missing-require rule to checkrequire.resolve()as well.2061413updatedplugin:node/recommendedpreset.
β¨ New Rules
a3e0e29added node/file-extension-in-import rule which enforce the style of file extensions.e41a1e0added node/prefer-promises/dns rule and node/prefer-promises/fs rule which enforce to use Promise API instead of Callback API.
v8.0.1
π Bug fixes
62ba642fixed the wrong messages ofnode/no-deprecated-apirule (#β142).0225b02...0593c67576c86b2cbf4990db38d1cc4707b2f309 fixed the false positives ofno-unpublished-(bin|import|require)rules (#β115, #β126).
v8.0.0
This release focuses on supporting new things that were added between Node.js 8.7.0 and 11.0.0.
Breaking changes
5860795updatednode/no-deprecated-apirule to disallow new deprecated APIs.
Especially, it includes legacy URL API.d153b93updatednode/no-unsupported-features/node-builtinsrule to detect new APIs.
New rules
46ed54daddednode/prefer-global/text-decoderrule for new global varaibleTextDecoder.46ed54daddednode/prefer-global/text-encoderrule for new global varaibleTextEncoder.
v7.0.1
Bug fixes
- It fixed false positive that the
node/no-unsupported-features/node-builtinsreports theprocess.emitWarningmethod on Node.js>=6 <8. It was supported since Node.js 6.0.0.
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...890ee63e98ef95ec5a27f50f42188102526d81b1
v6.0.1
Bug fixes
234703cfixed a regression thatnode/no-unsupported-featurescrashes ifenginesfield exists butengines.nodefield doesn't exist in package.json (#β109). Thanks @βZauberNerd !
Configuration
π Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
π¦ Automerge: Disabled by config. Please merge this manually once you are satisfied.
β» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
π Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, check this box
This PR was generated by Mend Renovate. View the repository job log.