chore(deps): update dependency @eslint-react/eslint-plugin to v2 #16
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.41.0
->^2.0.6
Release Notes
Rel1cx/eslint-react (@eslint-react/eslint-plugin)
v2.0.6
Compare Source
🐞 Fixes
Full Changelog: Rel1cx/eslint-react@v2.0.5...v2.0.6
v2.0.5
Compare Source
🪄 Improvements
dangerouslySetInnerHTML
to children indom/no-dangerously-set-innerhtml-with-children
rule by @Rel1cx in #125619.1.0
to19.2.0
by @Rel1cx in #1259Full Changelog: Rel1cx/eslint-react@v2.0.4...v2.0.5
v2.0.4
Compare Source
✨ New
naming-convention/use-state
rule in recommended presets by @Rel1cx in #1252🐞 Fixes
hooks-extra/no-direct-set-state-in-use-effect
rule to recommended presets, closes #1251 by @Rel1cx in #1252Full Changelog: Rel1cx/eslint-react@v2.0.3...v2.0.4
v2.0.3
Compare Source
🐞 Fixes
dom/prefer-namespace-import
missing inreact-dom
plugin by @Rel1cx in #1249dom/no-missing-button-type
when specifying non-trivial expression as value oftype
attribute, closes #1247 by @Rel1cx in #1250Full Changelog: Rel1cx/eslint-react@v2.0.2...v2.0.3
v2.0.2
Compare Source
🪄 Improvements
eslint-plugin-react
, closes #1154 by @outslept in #1242hooks-extra/no-direct-set-state-in-use-layout-effect
by @tnir in #1245v2.0.1
Compare Source
🐞 Fixes
ts-api-utils
to unified plugin deps, closes #1239 by @Rel1cx in #1240Full Changelog: Rel1cx/eslint-react@v2.0.0...v2.0.1
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 @reteps, @outslepttseslint.config
withdefineConfig
in all examples by @Rel1cxtsup
totsdown
for better performance by @Rel1cxFull Changelog: Rel1cx/eslint-react@v1.53.1...v2.0.0
v1.53.1
Compare Source
🐞 Fixes
web-api/no-leaked-event-listener
, closes #1228 by @Rel1cx in #1229Full Changelog: Rel1cx/eslint-react@v1.53.0...v1.53.1
v1.53.0
Compare Source
✨ New
🪄 Improvements
tsup
withtsdown
by @Rel1cx in #1213Full Changelog: Rel1cx/eslint-react@v1.52.8...v1.53.0
v1.52.9
Compare Source
🐞 Fixes
react-hooks-extra
rules were not exported, closes #1207 by @Rel1cx in #1208Full Changelog: Rel1cx/eslint-react@v1.52.8...v1.52.9
v1.52.8
Compare Source
🐞 Fixes
Full Changelog: Rel1cx/eslint-react@v1.52.7...v1.52.8
v1.52.7
Compare Source
🐞 Fixes
f3083c7
Full Changelog: Rel1cx/eslint-react@v1.52.6...v1.52.7
v1.52.6
Compare Source
🐞 Fixes
naming-convention/component-name
validation to continue on valid names, closes #1176 by @Rel1cx in #1177Full Changelog: Rel1cx/eslint-react@v1.52.5...v1.52.6
v1.52.5
Compare Source
🐞 Fixes
is-from-react
utility inreact-debug/is-from-react
rule and improvereact-x/no-forward-ref
rule autofix handling, closes #1172 by @Rel1cx in #1173Full Changelog: Rel1cx/eslint-react@v1.52.4...v1.52.5
v1.52.4
Compare Source
🐞 Fixes
Full Changelog: Rel1cx/eslint-react@v1.52.3...v1.52.4
v1.52.3
Compare Source
🐞 Fixes
bun
engine requirement frompackage.json
files, closes #1157 by @Rel1cx in #1158Full Changelog: Rel1cx/eslint-react@v1.52.2...v1.52.3
v1.52.2
Compare Source
🐞 Fixes
react-x/no-default-props
should report only function components, closes #1131 by @Rel1cx in681b10a
Full Changelog: Rel1cx/eslint-react@v1.52.1...v1.52.2
v1.52.1
Compare Source
✨ New
no-missing-context-display-name
by @k-yle in #1128New Contributors
Full Changelog: Rel1cx/eslint-react@v1.51.3...v1.52.1
v1.51.3
Compare Source
🐞 Fixes
react-x/jsx-no-iife
andreact-x/jsx-uses-vars
rules by @Rel1cx in #1127Full Changelog: Rel1cx/eslint-react@v1.51.2...v1.51.3
v1.51.2
Compare Source
🐞 Fixes
react-x/prefer-read-only-props
by @Rel1cx in #1125🪄 Improvements
Full Changelog: Rel1cx/eslint-react@v1.51.1...v1.51.2
v1.51.1
Compare Source
🐞 Fixes
Full Changelog: Rel1cx/eslint-react@v1.51.0...v1.51.1
v1.51.0
Compare Source
✨ New
jsx-no-iife
rule, closes #1112 by @Rel1cx in #1113🐞 Fixes
no-direct-set-state-in-use-effect
deferred setState calls detection, closes #1117 by @Rel1cx in #1119Full Changelog: Rel1cx/eslint-react@v1.50.0...v1.51.0
v1.50.0
Compare Source
🐞 Fixes
polymorphicPropName
not work withno-void-elements-with-children
by @huynhducduy in #1108zod
, closes #1110New Contributors
Full Changelog: Rel1cx/eslint-react@v1.49.0...v1.50.0
v1.49.0
Compare Source
✨ New
jsx-key-before-spread
, closes #1093, closes #1087 by @Rel1cx in #1105Full Changelog: Rel1cx/eslint-react@v1.48.5...v1.49.0
v1.48.5
Compare Source
🐞 Fixes
Full Changelog: Rel1cx/eslint-react@v1.48.4...v1.48.5
v1.48.4
Compare Source
🐞 Fixes
Full Changelog: Rel1cx/eslint-react@v1.48.3...v1.48.4
v1.48.3
Compare Source
🪄 Improvements
web-api/no-leaked-event-listener
docs by @Rel1cx in #1082Full Changelog: Rel1cx/eslint-react@v1.48.2...v1.48.3
v1.48.2
Compare Source
🐞 Fixes
hooks-extra/no-direct-set-state-in-use-effect
in pluginreact-hooks-extra
, closes #1077 by @Rel1cx in #1078Full Changelog: Rel1cx/eslint-react@v1.48.1...v1.48.2
v1.48.1
Compare Source
🐞 Fixes
eslint-plugin-react-hook
by @Rel1cx in #1074hooks-extra/no-unnecessary-use-prefix
by @Rel1cx in #1073Full Changelog: Rel1cx/eslint-react@v1.47.4...v1.48.0
v1.47.4
Compare Source
🐞 Fixes
hooks-extra/no-unnecessary-use-prefix
to skip well-known hooks likeuseMDXComponents
by @Rel1cx in #1072Full Changelog: Rel1cx/eslint-react@v1.47.3...v1.47.4
v1.47.3
Compare Source
🐞 Fixes
no-leaked-conditional-rendering
when logical expressions are wrapped by type expressions by @Rel1cx in #1068Full Changelog: Rel1cx/eslint-react@v1.47.2...v1.47.3
v1.47.2
Compare Source
🐞 Fixes
Full Changelog: Rel1cx/eslint-react@v1.47.1...v1.47.2
v1.47.1
Compare Source
🐞 Fixes
Full Changelog: Rel1cx/eslint-react@v1.47.0...v1.47.1
v1.47.0
Compare Source
🪄 Improvements
@eslint-react/jsx
package and move functionality to@eslint-react/core
by @Rel1cx in #1060Full Changelog: Rel1cx/eslint-react@v1.46.0...v1.47.0
v1.46.0
Compare Source
✨ New
Full Changelog: Rel1cx/eslint-react@v1.45.3...v1.45.4
v1.45.4
Compare Source
🪄 Improvements
Map
withWeakMap
by @Rel1cx in #1057Full Changelog: Rel1cx/eslint-react@v1.45.3...v1.45.4
v1.45.3
Compare Source
🪄 Improvements
picomatch.makeRe
withRE.toRegExp
for pattern matching by @Rel1cx in #1055Full Changelog: Rel1cx/eslint-react@v1.45.2...v1.45.3
v1.45.2
Compare Source
🪄 Improvements
b880cb9
Full Changelog: Rel1cx/eslint-react@v1.45.1...v1.45.2
v1.45.1
Compare Source
🐞 Fixes
hooks-extra/no-unnecessary-use-prefix
case sensitivity fails, closes #1053 by @Rel1cx in #1054Full Changelog: Rel1cx/eslint-react@v1.45.0...v1.45.1
v1.45.0
Compare Source
✨ New
react-x/no-misused-capture-owner-stack
rule, closes #1049 by @Rel1cx in #1047react-x/no-nested-lazy-component-declarations
rule, closes #1048 by @Rel1cx in #1052react-x/no-nested-lazy-component-declarations
rule to recommended presets by @Rel1cxFull Changelog: Rel1cx/eslint-react@v1.44.0...v1.45.0
v1.43.0
Compare Source
✨ New
react-x/no-string-refs
, closes #1044 by @Rel1cx in #1045Full Changelog: Rel1cx/eslint-react@v1.42.1...v1.43.0
v1.42.1
Compare Source
✨ New
core
preset tox
by @Rel1cx in #1042📝 Changes you should be aware of
The following presets have been renamed:
core
tox
core-legacy
tox-legacy
The old preset names will still be available until the next major update to avoid breaking changes.
Full Changelog: Rel1cx/eslint-react@v1.41.0...v1.42.1
v1.42.0
Compare Source
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 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.