chore(deps): update dependency @eslint-react/eslint-plugin to v2 #805
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.5.8->^1.5.8 || ^2.0.0Release Notes
Rel1cx/eslint-react (@eslint-react/eslint-plugin)
v2.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
Configuration
📅 Schedule: Branch creation - "after 9pm,before 9am" in timezone Asia/Shanghai, 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.
This PR was generated by Mend Renovate. View the repository job log.