chore(deps): update dependency @eslint-react/eslint-plugin to v2 #16
+119
−29
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.2.4Release 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
v1.53.1Compare 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.0Compare Source
✨ New
🪄 Improvements
tsupwithtsdownby @Rel1cx in #1213Full Changelog: Rel1cx/eslint-react@v1.52.8...v1.53.0
v1.52.9Compare Source
🐞 Fixes
react-hooks-extrarules were not exported, closes #1207 by @Rel1cx in #1208Full Changelog: Rel1cx/eslint-react@v1.52.8...v1.52.9
v1.52.8Compare Source
🐞 Fixes
Full Changelog: Rel1cx/eslint-react@v1.52.7...v1.52.8
v1.52.7Compare Source
🐞 Fixes
f3083c7Full Changelog: Rel1cx/eslint-react@v1.52.6...v1.52.7
v1.52.6Compare Source
🐞 Fixes
naming-convention/component-namevalidation to continue on valid names, closes #1176 by @Rel1cx in #1177Full Changelog: Rel1cx/eslint-react@v1.52.5...v1.52.6
v1.52.5Compare Source
🐞 Fixes
is-from-reactutility inreact-debug/is-from-reactrule and improvereact-x/no-forward-refrule autofix handling, closes #1172 by @Rel1cx in #1173Full Changelog: Rel1cx/eslint-react@v1.52.4...v1.52.5
v1.52.4Compare Source
🐞 Fixes
Full Changelog: Rel1cx/eslint-react@v1.52.3...v1.52.4
v1.52.3Compare Source
🐞 Fixes
bunengine requirement frompackage.jsonfiles, closes #1157 by @Rel1cx in #1158Full Changelog: Rel1cx/eslint-react@v1.52.2...v1.52.3
v1.52.2Compare Source
🐞 Fixes
react-x/no-default-propsshould report only function components, closes #1131 by @Rel1cx in681b10aFull Changelog: Rel1cx/eslint-react@v1.52.1...v1.52.2
v1.52.1Compare Source
✨ New
no-missing-context-display-nameby @k-yle in #1128New Contributors
Full Changelog: Rel1cx/eslint-react@v1.51.3...v1.52.1
v1.51.3Compare Source
🐞 Fixes
react-x/jsx-no-iifeandreact-x/jsx-uses-varsrules by @Rel1cx in #1127Full Changelog: Rel1cx/eslint-react@v1.51.2...v1.51.3
v1.51.2Compare Source
🐞 Fixes
react-x/prefer-read-only-propsby @Rel1cx in #1125🪄 Improvements
Full Changelog: Rel1cx/eslint-react@v1.51.1...v1.51.2
v1.51.1Compare Source
🐞 Fixes
Full Changelog: Rel1cx/eslint-react@v1.51.0...v1.51.1
v1.51.0Compare Source
✨ New
jsx-no-iiferule, closes #1112 by @Rel1cx in #1113🐞 Fixes
no-direct-set-state-in-use-effectdeferred setState calls detection, closes #1117 by @Rel1cx in #1119Full Changelog: Rel1cx/eslint-react@v1.50.0...v1.51.0
v1.50.0Compare Source
🐞 Fixes
polymorphicPropNamenot work withno-void-elements-with-childrenby @huynhducduy in #1108zod, closes #1110New Contributors
Full Changelog: Rel1cx/eslint-react@v1.49.0...v1.50.0
v1.49.0Compare 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.5Compare Source
🐞 Fixes
Full Changelog: Rel1cx/eslint-react@v1.48.4...v1.48.5
v1.48.4Compare Source
🐞 Fixes
Full Changelog: Rel1cx/eslint-react@v1.48.3...v1.48.4
v1.48.3Compare Source
🪄 Improvements
web-api/no-leaked-event-listenerdocs by @Rel1cx in #1082Full Changelog: Rel1cx/eslint-react@v1.48.2...v1.48.3
v1.48.2Compare Source
🐞 Fixes
hooks-extra/no-direct-set-state-in-use-effectin pluginreact-hooks-extra, closes #1077 by @Rel1cx in #1078Full Changelog: Rel1cx/eslint-react@v1.48.1...v1.48.2
v1.48.1Compare Source
🐞 Fixes
eslint-plugin-react-hookby @Rel1cx in #1074hooks-extra/no-unnecessary-use-prefixby @Rel1cx in #1073Full Changelog: Rel1cx/eslint-react@v1.47.4...v1.48.0
v1.47.4Compare Source
🐞 Fixes
hooks-extra/no-unnecessary-use-prefixto skip well-known hooks likeuseMDXComponentsby @Rel1cx in #1072Full Changelog: Rel1cx/eslint-react@v1.47.3...v1.47.4
v1.47.3Compare Source
🐞 Fixes
no-leaked-conditional-renderingwhen logical expressions are wrapped by type expressions by @Rel1cx in #1068Full Changelog: Rel1cx/eslint-react@v1.47.2...v1.47.3
v1.47.2Compare Source
🐞 Fixes
Full Changelog: Rel1cx/eslint-react@v1.47.1...v1.47.2
v1.47.1Compare Source
🐞 Fixes
Full Changelog: Rel1cx/eslint-react@v1.47.0...v1.47.1
v1.47.0Compare Source
🪄 Improvements
@eslint-react/jsxpackage and move functionality to@eslint-react/coreby @Rel1cx in #1060Full Changelog: Rel1cx/eslint-react@v1.46.0...v1.47.0
v1.46.0Compare Source
✨ New
Full Changelog: Rel1cx/eslint-react@v1.45.3...v1.45.4
v1.45.4Compare Source
🪄 Improvements
MapwithWeakMapby @Rel1cx in #1057Full Changelog: Rel1cx/eslint-react@v1.45.3...v1.45.4
v1.45.3Compare Source
🪄 Improvements
picomatch.makeRewithRE.toRegExpfor pattern matching by @Rel1cx in #1055Full Changelog: Rel1cx/eslint-react@v1.45.2...v1.45.3
v1.45.2Compare Source
🪄 Improvements
b880cb9Full Changelog: Rel1cx/eslint-react@v1.45.1...v1.45.2
v1.45.1Compare Source
🐞 Fixes
hooks-extra/no-unnecessary-use-prefixcase sensitivity fails, closes #1053 by @Rel1cx in #1054Full Changelog: Rel1cx/eslint-react@v1.45.0...v1.45.1
v1.45.0Compare Source
✨ New
react-x/no-misused-capture-owner-stackrule, closes #1049 by @Rel1cx in #1047react-x/no-nested-lazy-component-declarationsrule, closes #1048 by @Rel1cx in #1052react-x/no-nested-lazy-component-declarationsrule to recommended presets by @Rel1cxFull Changelog: Rel1cx/eslint-react@v1.44.0...v1.45.0
v1.43.0Compare 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.1Compare Source
✨ New
corepreset toxby @Rel1cx in #1042📝 Changes you should be aware of
The following presets have been renamed:
coretoxcore-legacytox-legacyThe 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.0Compare 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.