Update dependency @eslint-react/eslint-plugin to v2 #132
Reference in New Issue
Block a user
No description provided.
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.0
Release Notes
Rel1cx/eslint-react (@eslint-react/eslint-plugin)
v2.0.0
Compare Source
💥 Breaking Changes
Target Environment Updates: Now ESM and ESLint Flat Config Only
eslint.config.js
)Removed Rules
react-x/avoid-shorthand-boolean
react-x/jsx-shorthand-boolean
react-x/avoid-shorthand-fragment
react-x/jsx-shorthand-fragment
react-x/ensure-forward-ref-using-ref
react-x/no-useless-forward-ref
react-x/no-duplicate-props
react-x/jsx-no-duplicate-props
react-x/no-comment-textnodes
react-x/jsx-no-comment-textnodes
react-x/no-complicated-conditional-rendering
react-x/no-nested-components
react-x/no-nested-component-definitions
react-x/prefer-react-namespace-import
react-x/prefer-namespace-import
react-x/prefer-shorthand-boolean
react-x/jsx-shorthand-boolean
react-x/prefer-shorthand-fragment
react-x/jsx-shorthand-fragment
react-x/use-jsx-vars
react-x/jsx-uses-vars
react-dom/no-children-in-void-dom-elements
react-dom/no-void-elements-with-children
react-hooks-extra/no-direct-set-state-in-use-layout-effect
react-hooks-extra/no-direct-set-state-in-use-effect
react-hooks-extra/no-unnecessary-use-callback
react-x/no-unnecessary-use-callback
react-hooks-extra/no-unnecessary-use-memo
react-x/no-unnecessary-use-memo
react-hooks-extra/no-unnecessary-use-prefix
react-x/no-unnecessary-use-prefix
react-hooks-extra/prefer-use-state-lazy-initialization
react-x/prefer-use-state-lazy-initialization
Removed Presets
core
x
off-dom
disable-dom
Removed Settings
additionalComponents
additionalHooks
skipImportCheck
Rules 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 unnecessarykey
props 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 thestyle
prop by @Rel1cx, @karlhorkyreact-dom/prefer-namespace-import
: Enforces using a namespace import forreact-dom
by @Rel1cxAdded the following new rule to the
recommended-type-checked
preset:react-x/no-unused-props
: Reports unused props in componentsThe following rules now support Codemod features:
react-x/no-component-did-update
by @Rel1cxreact-x/no-component-will-receive-props
by @Rel1cxreact-x/no-component-will-update
by @Rel1cxreact-x/no-context-provider
by @Rel1cxreact-x/no-forward-ref
by @Rel1cxreact-x/no-string-refs
by @Rel1cxThe following rules now support auto-fix:
react-x/no-missing-context-display-name
by @k-yleThe following rules now support suggestion fixes:
react-dom/no-missing-button-type
by @Rel1cxreact-dom/no-missing-iframe-sandbox
by @Rel1cxreact-dom/no-unsafe-target-blank
by @Rel1cxNew configuration preset added:
disable-conflict-eslint-plugin-react
: Disable rules ineslint-plugin-react
that conflict with rules in our plugins by @reteps🐞 Fixes
vi.mock(...)
in Vitest test files by @Rel1cxuseEffect
setup function check to handleReact.useEffect()
calls correctly by @Rel1cx404.tsx
,_app.tsx
,[slug].tsx
by @Rel1cx🪄 Improvements
eslint-plugin-react
andeslint-react
rules by @retepstseslint.config
withdefineConfig
in all examples by @Rel1cxtsup
totsdown
for 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.