Update dependency @eslint-react/eslint-plugin to v2 #132
Reference in New Issue
Block a user
Delete Branch "renovate/eslint-react-eslint-plugin-2.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
^1.53.1->^2.0.0Release Notes
Rel1cx/eslint-react (@eslint-react/eslint-plugin)
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 @retepstseslint.configwithdefineConfigin all examples by @Rel1cxtsuptotsdownfor better performance by @Rel1cxFull Changelog: https://github.com/Rel1cx/eslint-react/compare/v1.53.1...v2.0.0
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 is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.