chore(deps): update linters (major) #1146
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
3.10.1->4.4.456.0.1->62.0.0Release Notes
import-js/eslint-import-resolver-typescript (eslint-import-resolver-typescript)
v4.4.4Compare Source
Patch Changes
#468
93b39d2Thanks @renovate! - chore(deps): bumpstable-hash-xv0.2.0#466
799f1ceThanks @anomiex! - fix: include options hash in cache key for options normalizationv4.4.3Compare Source
Patch Changes
43575e7Thanks @JounQin! - chore: migratestable-hashtostable-hash-xv4.4.2Compare Source
Patch Changes
f16150bThanks @carlocorradini and @JounQin! - fix: always sort projects by affinity before iteratingv4.4.1Compare Source
Patch Changes
d9f3e68Thanks @JounQin! - fix(deps): bumpeslint-import-contextto v0.1.5v4.4.0Compare Source
Minor Changes
7d87517Thanks @JounQin! - feat: integrateeslint-import-contextto get correctcontext.cwdv4.3.5Compare Source
Patch Changes
3f1aab1Thanks @JounQin! - fix: remove buggymodule-syncexports fieldv4.3.4Compare Source
Patch Changes
#442
57611d9Thanks @JounQin! - fix: add more extension aliases for ts source/declaration files#444
bd45fcdThanks @JounQin! - fix(deps): bumpunrs-resolverwhich resolves #406, #409, #437v4.3.3Compare Source
Patch Changes
834b11eThanks @JounQin! - chore: bumpunrs-resolverto v1.6.0v4.3.2Compare Source
Patch Changes
dabba8eThanks @JounQin! - chore: bumpunrs-resolverto v1.4.1v4.3.1Compare Source
Patch Changes
2ced0baThanks @JounQin! - chore: bumpunrs-resolverto v1.3.3v4.3.0Compare Source
Minor Changes
2fcb947Thanks @JounQin! - feat: throw error on malformedtsconfigreferencev4.2.7Compare Source
Patch Changes
aeb558fThanks @JounQin! - fix: add missingindex.d.ctsfilev4.2.6Compare Source
Patch Changes
c3f678bThanks @JounQin! - fix:requireentry types, addmodule-syncentryv4.2.5Compare Source
Patch Changes
ec59d22Thanks @JounQin! - fix: absolute path aliasing should not be skippedv4.2.4Compare Source
Patch Changes
#407
6b183ffThanks @JounQin! - chore: migrate to rebrandingunrs-resolverwith new targets supported:i686-pc-windows-msvcarmv7-unknown-linux-musleabihfpowerpc64le-unknown-linux-gnus390x-unknown-linux-gnuv4.2.3Compare Source
Patch Changes
#402
f21bf15Thanks @SunsetTechuila! - fix: don't resolve not implemented node modules inbunis-bun-moduleis marked asdependency, again, for correctness, seeisBunImplementedNodeModulefor more detailsFor
Bunusers: you don't need to installis-bun-moduleany more butbun: trueoption is still required if you're running withoutbun --bunnorrun#bunenabledv4.2.2Compare Source
Patch Changes
#397
14a7688Thanks @JounQin! - chore: bumprspack-resolverfor better P'n'P supportNow
rspack-resolverresolvespnpapinatively.v4.2.1Compare Source
Patch Changes
#394
9f11f6bThanks @JounQin! - fix: don't set emptyconfigFilewhen notsconfigfound#394
9f11f6bThanks @JounQin! - chore: bumprspack-resolverto v1.2.0v4.2.0Compare Source
Minor Changes
#391
c8121e5Thanks @JounQin! - feat: makeis-bun-moduleas optional peer dependencyTechnically this is a BREAKING CHANGE, but considering we just raise out v4 recently and this only affects
bunusers,bun --bun eslinteven works without this dependency, so I'd consider this as a minor change.So for
bunusers, there are three options:is-bun-moduledependency manually and usebun: trueoptioneslintwithbun --bun eslintw/obun: trueoptionrun#buninbunfig.tomlw/obun: trueoptionv4.1.1Compare Source
Patch Changes
1b97d8aThanks @JounQin! - fix: should prefermodule.isBuiltinwhenprocess.versions.bunavailablev4.1.0Compare Source
Minor Changes
#387
ef5cd10Thanks @JounQin! - feat: add a newbun?: booleanoption forbunusers - close #386process.versions.bunis unavailable even withbun eslintdue to its own design,but checking
bunmodules for non-bun users is incorrect behavior and just wasting time,so a new option is added for such case, you can still run with
bun --bun eslintwithout this option enabledv4.0.0Compare Source
Major Changes
#368
2fd7c2eThanks @JounQin! - feat!: rewrite, speed up by usingrspack-resolverwhich supportsreferencesnatively under the hoodBREAKING CHANGES:
^16.17.0 || >=18.6is now requiredalwaysTryTypesis enabled by default, you can set it asfalseto opt-outprojectis discouraged but still supported, singleprojectwithreferencesare encouraged for better performance, you can enablenoWarnOnMultipleProjectsoption to supress the warning messagetsconfig.jsonorjsconfig.jsonwill be used automatically if noprojectprovidedsindresorhus/eslint-plugin-unicorn (eslint-plugin-unicorn)
v62.0.0Compare Source
New rules
no-immediate-mutation(#2787)e1c7d2eno-useless-collection-argument(#2777)2d07c9aprefer-response-static-json(#2778)ffe5943Improvements
text-encoding-identifier-case: AddwithDashoption (#2780)9025386no-useless-undefined: Check oneundefinedat a time (#2792)27f7509prefer-single-call: Check optional chaining (#2788)8a132actext-encoding-identifier-case: Enforce'utf-8'inform[acceptCharset]andTextDecoder(#2785)46b3974prefer-node-protocol: Handle TypeScript import types (#2774)13a37a0no-array-for-each: IgnoreforEachfor Effect library (#2783)2ef6f83prefer-string-raw: Ignore more places that requires a string (#2776)43bc429prefer-string-raw: Add support for template literals (#2691)52723a2prefer-global-this: AddnavigationtowindowSpecificAPIs(#2770)0c93998prefer-code-point: Report cases whereString.fromCharCodeis not called directly (#2766)1d682a1no-useless-spread: Safely remove empty array and object (#2764)7aeababFixes
consistent-function-scoping: Fix inconsistent behavior (#2748)a546444v61.0.2Compare Source
throw-new-error: Fix false positive for Effect library (#2740)0ddf5eano-useless-undefined: IgnoreSet#delete(undefined)(#2739)99acd27prefer-includesandprefer-array-index-of: Prevent crash on Vue files (#2645)a1da518v61.0.1Compare Source
prefer-classlist-toggle: OmitElement#classList.contains()call when fixing (#2732)066f96bv61.0.0Compare Source
New rules
prefer-bigint-literals(#2722)1f4cb8aprefer-classlist-toggle(#2731)5f27ec2require-module-attributes(#2725)5f275e2no-array-sort(#2713)b70d1e8Improvements
unopinionatedconfig (#2715)c13d09b60b2ec5no-array-reduce: Report optional chaining and calling of.reduce()(#2721)caa1f8bprefer-type-error: Ignore error type check (#2729)d12fc01Fixes
prefer-includes: Fix compatibility with Vue SFC (#2704)540a4d4v60.0.0Compare Source
Breaking
2dc27d9New rules
prefer-class-fields(#2512)4c82dc1no-array-reverse(#2677)b051302require-module-specifiers(#2686)2a8e152no-useless-error-capture-stack-trace(#2676)fc900b6Improvements
prefer-string-replace-all: Preserve escape (#2667)2310b50SuppressedError(#2669)f51aeb9Fixes
no-array-callback-reference: Fix optional chaining expressions being ignored (#2694)ad27922no-unnecessary-await: Fix handling of experimental pipeline operator (#2658)2b8ebe5v59.0.1Compare Source
prefer-single-call: Fix crash onCallExpressionfollowed byFunctionDeclaration(#2639)3114dd9v59.0.0Compare Source
Breaking
no-array-push-pushrule toprefer-single-call(#2617)e117783no-length-as-slice-endrule tono-unnecessary-slice-end(#2614)1922df1New rules
prefer-import-meta-properties(#2607)1f6e172no-unnecessary-array-flat-depth(#2618)c63e698no-unnecessary-array-splice-count(#2614)1922df1Improvements
Float16Array(#2622)9e50568prefer-node-protocol: Supportprocess.getBuiltinModule()(#2611)056364dno-unnecessary-slice-end: Support checkingInfinity(#2614)1922df1v58.0.0Compare Source
Potentially breaking
engines.nodein package.json to match real compatibility (#2581)e48a620Improvements
escape-case: Add case option (#2559)0f6048cnumber-literal-case: AddhexadecimalValueoption (#2559)0f6048cprevent-abbreviations: PreserveiOS(#2560)e8798daFixes
no-unnecessary-polyfills: Fix browserslist field name (#2603)1a4c76fno-unnecessary-polyfills: Fix crash on checkinges6-errormodule (#2582)66de41ano-accessor-recursion: Fix exception when used in CommonJS (#2574)ca1e432v57.0.0Compare Source
Breaking
c44ea26c44ea26New rules
consistent-date-clone(#2544)8cebcf4no-named-default(#2538)ed8da1bconsistent-assert(#2535)f3fc973no-instanceof-builtins819757441548c4no-accessor-recursion(#2525)92b5671Improvements
no-instanceof-array(#2534)c9c056cno-instanceof-builtinswhich covers more cases.prefer-includes: Support Vue template (#2526)4e539b4prevent-abbreviations: Addutilandutilsto abbreviations (#2507)5ba9f0aprefer-math-min-max: Ignore BigInt (#2467)8b7c5fcprefer-global-this: Also excludeouterWidthandouterHeight(#2549)8f00f76prefer-at: Remove unsafe autofix for.slicewith 1 argument (#2476)2985eccprefer-math-min-max: Reduce false positives in TypeScript (#2527)1cbc561prefer-string-raw: IgnoreImportAttribute(#2551)d963ccdFixes
new-for-builtins: Correct fix forDate()(#2543)e5e17f8prefer-global-this: Fix auto-fix fortypeof window(#2501)b95dc12Configuration
📅 Schedule: Branch creation - Monday through Friday ( * * * * 1-5 ) (UTC), 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.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.