-
Notifications
You must be signed in to change notification settings - Fork 0
fix(deps): update eslint rule and plugin updates (major) #276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
renovate
wants to merge
1
commit into
main
Choose a base branch
from
renovate/major-eslint-rule-and-plugin-updates
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
96327f2 to
dee06e0
Compare
dee06e0 to
12bd3c1
Compare
12bd3c1 to
a95858c
Compare
a95858c to
3ce13ca
Compare
3ce13ca to
2675d1c
Compare
2675d1c to
14ec4e1
Compare
14ec4e1 to
8d21b5f
Compare
8d21b5f to
2a5d74c
Compare
2a5d74c to
3514bf7
Compare
3514bf7 to
dde11e2
Compare
dde11e2 to
b82e1c2
Compare
b82e1c2 to
9d0223e
Compare
9d0223e to
4e99160
Compare
4e99160 to
35ee602
Compare
35ee602 to
c65612e
Compare
c65612e to
a57589a
Compare
a57589a to
ceea643
Compare
ceea643 to
657d8ca
Compare
657d8ca to
332ff29
Compare
332ff29 to
274ea77
Compare
274ea77 to
aa7fd43
Compare
aa7fd43 to
3289ea8
Compare
3289ea8 to
9be1c89
Compare
9be1c89 to
6f60d37
Compare
6f60d37 to
3c99294
Compare
cec3aca to
46c6046
Compare
46c6046 to
471b2cc
Compare
471b2cc to
a4112e9
Compare
a4112e9 to
54752df
Compare
54752df to
b5dabae
Compare
b5dabae to
c09893d
Compare
c09893d to
c7762c2
Compare
c7762c2 to
3cc65f3
Compare
3cc65f3 to
4aaf500
Compare
4aaf500 to
ab4f0b2
Compare
ab4f0b2 to
2e2ff7f
Compare
2e2ff7f to
738ebdf
Compare
738ebdf to
1132dbe
Compare
1132dbe to
f4811f6
Compare
f4811f6 to
34a543d
Compare
34a543d to
2ba2ec2
Compare
2ba2ec2 to
d12284e
Compare
d12284e to
08e9b16
Compare
08e9b16 to
e4ebb10
Compare
e4ebb10 to
a17b741
Compare
a17b741 to
6943cf9
Compare
6943cf9 to
06a74d9
Compare
06a74d9 to
a6b91b7
Compare
a6b91b7 to
e12496c
Compare
e12496c to
5bb12e7
Compare
5bb12e7 to
2fe1ef3
Compare
2fe1ef3 to
ad751c3
Compare
ad751c3 to
d72760b
Compare
d72760b to
d9f9989
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
1.53.1->2.2.45.2.0->7.0.160.0.0->62.0.0Release Notes
Rel1cx/eslint-react (@eslint-react/eslint-plugin)
v2.2.4Compare Source
🐞 Fixes
main,module, andtypesfields topackage.jsonfor multiple packages, closes #1288, closes #1283 by @Rel1cx in #1294react-x/no-context-providerrule, closes #1295 by @Rel1cx in #1296🪄 Improvements
dom/no-string-style-propto migration docs by @silverwind in #1293v2.2.3Compare Source
🐞 Fixes
react-x/jsx-key-before-spreadto presets, closes #1290 by @jkbdk in #1291🪄 Improvements
strictpreset severity to rules overview, closes #1284 by @Rel1cx in #1285display-namerule entry in migration docs by @danielrentz in #1287v2.2.2Compare Source
🐞 Fixes
Full Changelog: Rel1cx/eslint-react@v2.2.1...v2.2.2
v2.2.1🪄 Improvements
eslint-plugin-react-debugplugin to reduce its deps by @Rel1cx in #1276@eslint-react/kitpackage into@eslint-react/sharedpackage to consolidate shared utilities and reduce package fragmentation by @Rel1cx in #1275Full Changelog: Rel1cx/eslint-react@v2.1.1...v2.2.1
v2.1.1✨ New
strict,strict-typescript, andstrict-type-checkedpresets by @Rel1cxno-deprecatedpreset to enable all rules that report deprecated React APIs by @Rel1cx🐞 Fixes
🪄 Improvements
recommendedpresets tostrictpresets by @Rel1cx, closes #1262react-x/no-unstable-context-valuereact-x/no-unstable-default-propsreact-x/no-unused-class-component-membersreact-x/no-unused-statereact-dom/no-missing-button-typereact-dom/no-missing-iframe-sandboxreact-dom/no-unsafe-iframe-sandboxreact-dom/no-unsafe-target-blanktypescriptpeer dependency version range from^5.9.2to^5by @Rel1cxv2.0.6Compare Source
🐞 Fixes
Full Changelog: Rel1cx/eslint-react@v2.0.5...v2.0.6
v2.0.5Compare Source
🪄 Improvements
dangerouslySetInnerHTMLto children indom/no-dangerously-set-innerhtml-with-childrenrule by @Rel1cx in #125619.1.0to19.2.0by @Rel1cx in #1259Full Changelog: Rel1cx/eslint-react@v2.0.4...v2.0.5
v2.0.4Compare Source
✨ New
naming-convention/use-staterule in recommended presets by @Rel1cx in #1252🐞 Fixes
hooks-extra/no-direct-set-state-in-use-effectrule to recommended presets, closes #1251 by @Rel1cx in #1252Full Changelog: Rel1cx/eslint-react@v2.0.3...v2.0.4
v2.0.3Compare Source
🐞 Fixes
dom/prefer-namespace-importmissing inreact-domplugin by @Rel1cx in #1249dom/no-missing-button-typewhen specifying non-trivial expression as value oftypeattribute, closes #1247 by @Rel1cx in #1250Full Changelog: Rel1cx/eslint-react@v2.0.2...v2.0.3
v2.0.2Compare Source
🪄 Improvements
eslint-plugin-react, closes #1154 by @outslept in #1242hooks-extra/no-direct-set-state-in-use-layout-effectby @tnir in #1245v2.0.1Compare Source
🐞 Fixes
ts-api-utilsto unified plugin deps, closes #1239 by @Rel1cx in #1240Full Changelog: Rel1cx/eslint-react@v2.0.0...v2.0.1
v2.0.0Compare Source
💥 Breaking Changes
Target Environment Updates: Now ESM and ESLint Flat Config Only
eslint.config.js)Removed Rules
react-x/avoid-shorthand-booleanreact-x/jsx-shorthand-booleanreact-x/avoid-shorthand-fragmentreact-x/jsx-shorthand-fragmentreact-x/ensure-forward-ref-using-refreact-x/no-useless-forward-refreact-x/no-duplicate-propsreact-x/jsx-no-duplicate-propsreact-x/no-comment-textnodesreact-x/jsx-no-comment-textnodesreact-x/no-complicated-conditional-renderingreact-x/no-nested-componentsreact-x/no-nested-component-definitionsreact-x/prefer-react-namespace-importreact-x/prefer-namespace-importreact-x/prefer-shorthand-booleanreact-x/jsx-shorthand-booleanreact-x/prefer-shorthand-fragmentreact-x/jsx-shorthand-fragmentreact-x/use-jsx-varsreact-x/jsx-uses-varsreact-dom/no-children-in-void-dom-elementsreact-dom/no-void-elements-with-childrenreact-hooks-extra/no-direct-set-state-in-use-layout-effectreact-hooks-extra/no-direct-set-state-in-use-effectreact-hooks-extra/no-unnecessary-use-callbackreact-x/no-unnecessary-use-callbackreact-hooks-extra/no-unnecessary-use-memoreact-x/no-unnecessary-use-memoreact-hooks-extra/no-unnecessary-use-prefixreact-x/no-unnecessary-use-prefixreact-hooks-extra/prefer-use-state-lazy-initializationreact-x/prefer-use-state-lazy-initializationRemoved Presets
corexoff-domdisable-domRemoved Settings
additionalComponentsadditionalHooksskipImportCheckRules previously using these settings have been refactored to use improved heuristics and no longer require manual configuration.
✨ New
Added the following new rules:
react-x/jsx-shorthand-boolean: Enforces a consistent style for boolean attributes by @Rel1cxreact-x/jsx-shorthand-fragment: Enforces a consistent style for React Fragments by @Rel1cxreact-x/no-forbidden-props: Disallows specific props on components by @retepsreact-x/no-unnecessary-key: Reports unnecessarykeyprops on elements by @Rel1cx, @kachkaevreact-x/no-unused-props: Reports unused props in components by @ulrichstarkreact-dom/no-string-style-prop: Disallows string values for thestyleprop by @Rel1cx, @karlhorkyreact-dom/prefer-namespace-import: Enforces using a namespace import forreact-domby @Rel1cxAdded the following new rule to the
recommended-type-checkedpreset:react-x/no-unused-props: Reports unused props in componentsThe following rules now support Codemod features:
react-x/no-component-did-updateby @Rel1cxreact-x/no-component-will-receive-propsby @Rel1cxreact-x/no-component-will-updateby @Rel1cxreact-x/no-context-providerby @Rel1cxreact-x/no-forward-refby @Rel1cxreact-x/no-string-refsby @Rel1cxThe following rules now support auto-fix:
react-x/no-missing-context-display-nameby @k-yleThe following rules now support suggestion fixes:
react-dom/no-missing-button-typeby @Rel1cxreact-dom/no-missing-iframe-sandboxby @Rel1cxreact-dom/no-unsafe-target-blankby @Rel1cxNew configuration preset added:
disable-conflict-eslint-plugin-react: Disable rules ineslint-plugin-reactthat conflict with rules in our plugins by @reteps🐞 Fixes
vi.mock(...)in Vitest test files by @Rel1cxuseEffectsetup function check to handleReact.useEffect()calls correctly by @Rel1cx404.tsx,_app.tsx,[slug].tsxby @Rel1cx🪄 Improvements
eslint-plugin-reactandeslint-reactrules by @reteps, @outslepttseslint.configwithdefineConfigin all examples by @Rel1cxtsuptotsdownfor better performance by @Rel1cxFull Changelog: Rel1cx/eslint-react@v1.53.1...v2.0.0
facebook/react (eslint-plugin-react-hooks)
v7.0.1Compare Source
useEffectEventvalues as JSX props to guard against accidental propagation. (#34820 by @jf-eirinha)export =so eslint-plugin-react-hooks emits correct types for consumers in Node16 ESM projects. (#34949 by @karlhorky)configs.flatso theconfigsexport is always defined. (#34950 by @poteto)v7.0.0Compare Source
This release slims down presets to just 2 configurations (
recommendedandrecommended-latest), and all compiler rules are enabled by default.recommended-latest-legacyandflat/recommendedconfigs. The plugin now providesrecommended(legacy and flat configs with all recommended rules), andrecommended-latest(legacy and flat configs with all recommended rules plus new bleeding edge experimental compiler rules). (@poteto in #34757)v6.1.1Compare Source
Note: 6.1.0 accidentally allowed use of
recommendedwithout flat config, causing errors when used with ESLint v9'sdefineConfig()helper. This has been fixed in 6.1.1.recommendedconfig for flat config compatibility. Therecommendedconfig has been converted to flat config format. Non-flat config users should userecommended-legacyinstead. (@poteto in #34700)recommended-latestandrecommended-latest-legacyconfigs that include React Compiler rules. (@poteto in #34675)NoUnusedOptOutDirectivesrule. (@poteto in #34703)hermes-parserand dependency. (@poteto in #34719)@babel/plugin-proposal-private-methodsdependency. (@ArnaudBarre and @josephsavona in #34715)v6.1.0Compare Source
Note: Version 6.0.0 was mistakenly released and immediately deprecated and untagged on npm. This is the first official 6.x major release and includes breaking changes.
recommendedpreset. Legacy config moved torecommended-legacy. (@michaelfaith in #32457)usewithin try/catch blocks. (@poteto in #34040)useEffectEventfunctions in arbitrary closures. (@jbrown215 in #33544)React.useEffectin addition touseEffectin rules-of-hooks. (@Ayc0 in #34076)react-hookssettings config option that to acceptadditionalEffectHooksthat are used across exhaustive-deps and rules-of-hooks rules. (@jbrown215) in #34497v6.0.0Compare Source
Accidentally released. See 6.1.0 for the actual changes.
sindresorhus/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)540a4d4Configuration
📅 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.
👻 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.