chore(deps): update dependency @eslint-react/eslint-plugin to v2#16
Open
renovate[bot] wants to merge 1 commit intomainfrom
Open
chore(deps): update dependency @eslint-react/eslint-plugin to v2#16renovate[bot] wants to merge 1 commit intomainfrom
renovate[bot] wants to merge 1 commit intomainfrom
Conversation
ada0efe to
dc09a24
Compare
aa40816 to
84585e2
Compare
d36bff7 to
ce56a66
Compare
201115a to
52ab0a7
Compare
2cec4ad to
af3e318
Compare
98c3a87 to
5f9ecd4
Compare
1ad7033 to
84268a6
Compare
84268a6 to
5f5ef1d
Compare
5f5ef1d to
a98261c
Compare
a98261c to
a6778eb
Compare
be842ec to
ea12084
Compare
ea12084 to
aa97cf0
Compare
bb94860 to
da35a5e
Compare
5c2742f to
adf682f
Compare
3643901 to
dd2fae6
Compare
dd2fae6 to
b25146f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.13.0Release Notes
Rel1cx/eslint-react (@eslint-react/eslint-plugin)
v2.13.0Compare Source
✨ New
naming-convention/id-namerule forReact.useId()by @amir-rahmanii in #1497naming-convention/filenameandnaming-convention/filename-extensionby @Rel1cx in #1498🐞 Fixes
meta.typefrom"problem"to"suggestion"for naming-convention rules by @amir-rahmanii in #1496📝 Changes you should be aware of
naming-convention/filenamerule has been deprecated and will be removed in the next major version.naming-convention/filename-extensionrule has been deprecated and will be removed in the next major version.Modern React frameworks each come with their own naming conventions that can differ or even conflict. A single predefined, framework-agnostic filename or filename extension rule no longer matches real-world usage. Please follow the official naming conventions of the specific React framework you are using.
For example, here are some references for popular frameworks:
Full Changelog: Rel1cx/eslint-react@v2.12.4...v2.13.0
v2.12.4Compare Source
🐞 Fixes
preactandpreact/compatsupport inno-implicit-keyrule by @Rel1cx in #1494🪄 Improvements
dom/no-unknown-propertyrule to fix all ESLint and TypeScript issues by @ulrichstark in #1490Full Changelog: Rel1cx/eslint-react@v2.12.2...v2.12.4
v2.12.2Compare Source
🐞 Fixes
Full Changelog: Rel1cx/eslint-react@v2.12.1...v2.12.2
v2.12.1Compare Source
🐞 Fixes
Reactnamespace inno-implicit-keyby @Rel1cx in #1487Full Changelog: Rel1cx/eslint-react@v2.12.0...v2.12.1
v2.12.0Compare Source
🪄 Improvements
📝 Changes you should be aware of
ESLint v10 is now supported and used throughout the repository. The minimum required ESLint version remains v8.57.0, but the project now supports and is tested against ESLint v10.
Full Changelog: Rel1cx/eslint-react@v2.11.2...v2.12.0
v2.11.2Compare Source
🐞 Fixes
getFullyQualifiedNamecannot handle inno-implicit-key, closes #1476 by @Rel1cx in #1480🪄 Improvements
Full Changelog: Rel1cx/eslint-react@v2.11.1...v2.11.2
v2.11.1Compare Source
🐞 Fixes
no-implicit-key, closes #1476 by @Rel1cx in #1479no-implicit-keyrule todisable-type-checkedconfig ofeslint-plugin-react-x, closes #1477 by @Rel1cx in #1478Full Changelog: Rel1cx/eslint-react@v2.11.0...v2.11.1
v2.11.0Compare Source
✨ New
recommendedpresets by @Rel1cx in #1475Full Changelog: Rel1cx/eslint-react@v2.10.1...v2.11.0
v2.10.1Compare Source
🐞 Fixes
no-implicit-keyrule for React internally defined keys, closes #1472 by @Rel1cx in #1474Full Changelog: Rel1cx/eslint-react@v2.10.0...v2.10.1
v2.10.0Compare Source
no-implicit-keyrule to use type checking by @Rel1cx in #1466no-unnecessary-use-refto removed rules, closes #1417 by @Rel1cx in #1471📝 Changes you should be aware of
no-implicit-keyrule has been updated to use type checking and moved fromrecommendedtotype-checkedpresets.no-unnecessary-use-refrule has been moved to removed rules, because the rule is hard to get right.Full Changelog: Rel1cx/eslint-react@v2.9.4...v2.10.0
v2.9.4Compare Source
🐞 Fixes
Full Changelog: Rel1cx/eslint-react@v2.9.3...v2.9.4
v2.9.3Compare Source
📝 Changes you should be aware of
The following rules have been deprecated and will be removed in the next major version:
no-default-propsno-prop-typesno-string-refsFor legacy codebases, use
no-restricted-syntaxas an alternative:Full Changelog: Rel1cx/eslint-react@v2.9.2...v2.9.3
v2.9.2🐞 Fixes
allconfig, closes #1462 by @Rel1cx in #1463🪄 Improvements
rsc/function-definitionby @SukkaW in #1460Full Changelog: Rel1cx/eslint-react@v2.9.0...v2.9.2
v2.9.0Compare Source
✨ New
no-non-async-server-functionsrule torsc/function-definitionby @Rel1cx in #1457eslint-plugin-react-rscsub-plugin for React Server Components (RSC) rules by @Rel1cx in #1457rscpreset to enable RSC rules by @Rel1cx in #1457disable-rscpreset to disable RSC rules by @Rel1cx in #1457🪄 Improvements
📝 Changes you should be aware of
The
no-non-async-server-functionsrule has been migrated torsc/function-definition. Please update your configuration accordingly if you are using it.Full Changelog: Rel1cx/eslint-react@v2.8.4...v2.9.0
v2.8.4Compare Source
🐞 Fixes
jsx-shorthand-booleanrule in migration table by @connorshea in #1446debug/is-from-refby @amir-rahmanii in #1445no-non-async-server-functionsby @Rel1cx in #1447no-non-async-server-functionsas experimental by @Rel1cx in #1448v2.8.3Compare Source
✨ New
no-non-async-server-functionsby @SukkaW in #1443Full Changelog: Rel1cx/eslint-react@v2.8.1...v2.8.3
v2.8.1Compare Source
✨ New
ReactNodebut have a'use memo'or'use no memo'directive by @Rel1cx in #1440The function in below example will be detected as a function component in relevant rules:
🐞 Fixes
'use memo';is present by @Rel1cx in #1441Full Changelog: Rel1cx/eslint-react@v2.8.0...v2.8.1
v2.8.0Compare Source
✨ New
ReactNodebut call React Hooks by @Rel1cx in #1438The function in below example will be detected as a function component in relevant rules:
🐞 Fixes
no-unnecessary-keyto remove constant key checking, closes #1436 by @Rel1cx in #1439Full Changelog: Rel1cx/eslint-react@v2.7.4...v2.8.0
v2.7.4Compare Source
✨ New
debug/is-from-refrule by @Rel1cx in #1433🐞 Fixes
🪄 Improvements
Full Changelog: Rel1cx/eslint-react@v2.7.2...v2.7.3
v2.7.2Compare Source
🪄 Improvements
prefer-destructuring-assignmentrule for better performance by @Rel1cx in #1423Full Changelog: Rel1cx/eslint-react@v2.7.1...v2.7.2
v2.7.1Compare Source
🐞 Fixes
no-unnecessary-use-refrule from strict configurations and update documentation by @Rel1cx in #1419📝 Changes you should be aware of
The
no-unnecessary-use-refrule has been removed from the strict presets, as it was causing false positives in certain scenarios. You can still enable it manually if needed, but please be aware of its current limitations.Full Changelog: Rel1cx/eslint-react@v2.7.0...v2.7.1
v2.7.0Compare Source
✨ New
additionalStateHooksto shared settings, closes #1405 by @Rel1cx in #1411🐞 Fixes
no-unnecessary-memoandno-unnecessary-use-callbackfalse positives when unused, closes #1404 by @Rel1cx in #1407no-unnecessary-use-refto allow previous refs by convention, closes #1406 by @Rel1cx in #1410no-missing-keymisdetect non-map calls as map since 2.6.4 version, closes #1412 by @Rel1cx in #1413Full Changelog: Rel1cx/eslint-react@v2.6.4...v2.7.0
v2.6.4Compare Source
✨ New
disable-experimentalpreset to quickly opt out of experimental rules by @Rel1cx in #1403Full Changelog: Rel1cx/eslint-react@v2.6.2...v2.6.4
v2.6.2🐞 Fixes
no-unnecessary-keyfalse positives on JSX elements inside render props by @Rel1cx in #1402no-unnecessary-use-refrule tests and improve handling of ref references by @Rel1cx in #1399v2.6.0✨ New
no-unnecessary-use-refrule, closes #1394 by @Rel1cx in #1397📝 Changes you should be aware of
The new
no-unnecessary-use-refrule is included in the strict presets.This rule reports unnecessary uses of
useRefwhen the ref is only used within a single effect which the value can be co-located inside the effect itself. Thanks to @SukkaW for purposing it!Full Changelog: Rel1cx/eslint-react@v2.5.7...v2.6.0
v2.5.7Compare Source
🪄 Improvements
no-unnecessary-keyto catch constant keys outside of map calls, closes #1377 by @Rel1cx in #1393🐞 Fixes
no-implicit-keyrule from recommended presets' by @Rel1cx in #1392📝 Changes you should be aware of
The
no-implicit-keyrule has been re-added to the recommended presets.Full Changelog: Rel1cx/eslint-react@v2.5.5...v2.5.7
v2.5.5🐞 Fixes
no-unnecessary-keyrule from strict presets by @Rel1cx in #1386no-duplicate-keyrule from recommended presets by @Rel1cx in #1387Removeno-implicit-keyrule from recommended presets by @Rel1cx in #1388📝 Changes you should be aware of
The following rules have been removed from the strict and recommended presets:
no-unnecessary-keyno-duplicate-keyno-implicit-keyFull Changelog: Rel1cx/eslint-react@v2.5.3...v2.5.5
v2.5.3Compare Source
🐞 Fixes
naming-convention/context-namerule to include React version checks; closes #1382 by @Rel1cx in #1384naming-convention/ref-nameto allow "ref" as a ref name by @ocavue in #1380jsx-key-before-spread: should only be enabled in JSX automatic runtime; update related docs and tests; closes #1381 by @Rel1cx in #1383v2.5.1Compare Source
🐞 Fixes
naming-convention/ref-namefalse positive with immediate deref, closes #1375 by @Rel1cx in #1376Full Changelog: Rel1cx/eslint-react@v2.5.0...v2.5.1
v2.5.0Compare Source
✨ New
use-ref-namerule by @amir-rahmanii in #1366use-ref-namerule toref-nameand add it to recommended presets by @Rel1cx in #1367🪄 Improvements
verify-rules-metasscript & minor docs fixes by @Rel1cx in #1355enforceAssignmentby @amir-rahmanii in #1363v2.4.0Compare Source
✨ New
enforceAssignmentandenforceSetterNameoptions tonaming-convention/use-stateby @Rel1cx in #1346🐞 Fixes
naming-convention/use-statefor state with no setters, closes #1342, closes #1352 by @Rel1cx in #1346🪄 Improvements
typescript-eslintto8.50.1across all packagesFull Changelog: Rel1cx/eslint-react@v2.3.13...v2.4.0
v2.3.13Compare Source
🐞 Fixes
isNodeEqualdid not handleasexpressions correctly, closes #1340 by @Rel1cx in #1341🪄 Improvements
Full Changelog: Rel1cx/eslint-react@v2.3.12...v2.3.13
v2.3.12Compare Source
✨ New
allowEmptyFragmentoption toreact-x/no-useless-fragment, closes #1265 by @Rel1cx in #1335🐞 Fixes
web-api/no-leaked-event-listenerfalse positive when using React NativeBackHandler, closes #1323 by @Rel1cx in #1336Full Changelog: Rel1cx/eslint-react@v2.3.11...v2.3.12
v2.3.11🐞 Fixes
react-x/prefer-read-only-propsrule, closes #1326 by @Rel1cx in #1331forwardRef'srefshould be excluded from check, closes #1332 by @Rel1cx in #1333Full Changelog: Rel1cx/eslint-react@v2.3.9...v2.3.11
v2.3.9Compare Source
✨ New
useCallbackor a variable wrapped inuseMemoyet only used inuseEffectand only in oneuseEffect, closes #1278 by @possum-enjoyer in #1321🐞 Fixes
no-unsafe-iframe-sandboxin rule docs by @JstnMcBrd in #1327v2.3.7Compare Source
🐞 Fixes
web-api/no-leaked-event-listenerdoes not report event listeners withsignal, closes #1282 by @Rel1cx in #1325Full Changelog: Rel1cx/eslint-react@v2.3.5...v2.3.7
v2.3.5Compare Source
🐞 Fixes
disable-conflict-eslint-plugin-react, closes #1315 by @jkbdk in #1316Full Changelog: Rel1cx/eslint-react@v2.3.4...v2.3.5
v2.3.4Compare Source
✨ New
safeDefaultPropsoption, closes #1312 by @christopher-buss in #1313🐞 Fixes
type-festfrom shared package, closes #1306 by @Rel1cx in #1307Full Changelog: Rel1cx/eslint-react@v2.3.1...v2.3.4
v2.3.1Compare Source
🐞 Fixes
react-x/jsx-dollarrule by @Rel1cx in #1303Full Changelog: Rel1cx/eslint-react@v2.3.0...v2.3.1
v2.3.0Compare Source
✨ New
react-x/jsx-dollarrule, closes #1300 by @Rel1cx in #1302🪄 Improvements
strictNullChecksin tsconfig samples, closes #1299 by @Rel1cx in #1301Full Changelog: Rel1cx/eslint-react@v2.2.4...v2.3.0
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
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.