Open
Conversation
f8fbd35 to
b75b982
Compare
b75b982 to
245ec7d
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:
7.2.0→7.4.32.7.2→2.13.00.4.171→0.4.17224.10.9→24.10.135.1.2→5.1.40.4.26→0.5.011.9.0→11.10.06.1.2→6.1.37.7.3→7.7.4Release Notes
antfu/eslint-config (@antfu/eslint-config)
v7.4.3Compare Source
🐞 Bug Fixes
View changes on GitHub
v7.4.2Compare Source
🐞 Bug Fixes
View changes on GitHub
v7.4.1Compare Source
🐞 Bug Fixes
typescriptis off - by @antfu (bda75)View changes on GitHub
v7.4.0Compare Source
🚀 Features
🐞 Bug Fixes
View changes on GitHub
v7.3.0Compare Source
🚀 Features
eslint-plugin-react-refresh,eslint-plugin-regexp- by @antfu (610e7)🐞 Bug Fixes
View changes on GitHub
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
leanix/leanix-reporting (@leanix/reporting)
v0.4.172Compare Source
vitejs/vite-plugin-react (@vitejs/plugin-react)
v5.1.4Compare Source
Fix
canSkipBabelnot accounting forbabel.overrides(#1098)When configuring
babel.overrideswithout top-level plugins or presets, Babel was incorrectly skipped. ThecanSkipBabelfunction now checks foroverrides.lengthto ensure override configurations are processed.v5.1.3Compare Source
ArnaudBarre/eslint-plugin-react-refresh (eslint-plugin-react-refresh)
v0.5.0Compare Source
Breaking changes
reactRefreshexport is available and prefered over the default export. It's an object with two properties:plugin: The plugin object with the rulesconfigs: An object containing configuration presets, each exposed as a function. These functions accept your custom options, merge them with sensible defaults for that config, and return the final config object.customHOCsoption was renamed toextraHOCsextraHOCsoptionConfig example:
Config example without config:
Why
This version follows a revamp of the internal logic to better make the difference between random call expressions like
export const Enum = Object.keys(Record)and actual React HOC calls likeexport const MemoComponent = memo(Component). (fixes #93)The rule now handles ternaries and patterns like
export default customHOC(props)(Component)which makes it able to correctly support files like this one given this config:{ "react-refresh/only-export-components": [ "warn", { "extraHOCs": ["createRootRouteWithContext"] } ] }Because I'm not 100% sure this new logic doesn't introduce any false positive, this is done in a major-like version. This also give me the occasion to remove the hardcoded
connectfrom the rule. If you are usingconnectfromreact-redux, you should now add it toextraHOCslike this:{ "react-refresh/only-export-components": ["warn", { "extraHOCs": ["connect"] }] }npm/cli (npm)
v11.10.0Compare Source
Features
cf56a1e#8899 npm trust, per-command config (@reggi)cf56a1e#8899 npm trust (@reggi)66d6e11#8965 add min-release-age (#8965) (@wraithgar)Dependencies
aae84bf#8973pacote@21.3.18bcb675#8973cidr-regex@5.0.2f87aaab#8973lru-cache@11.2.6acec871#8973ssri@13.0.11e42a86#8973glob@13.0.2e1c08a4#8973is-cidr@6.0.3dfb0e34#8973semver@7.7.40ee7776#8973which@6.0.1Chores
eb81df8#8973 dev dependency updates (@wraithgar)995e757#8966 Clean up some todos, add tests for previously skipped blocks (@owlstronaut)@npmcli/arborist@9.3.0@npmcli/config@10.7.0libnpmdiff@8.1.1libnpmexec@10.2.1libnpmfund@7.0.15libnpmpack@9.1.1isaacs/rimraf (rimraf)
v6.1.3Compare Source
npm/node-semver (semver)
v7.7.4Compare Source
Bug Fixes
a29faa5#835 cli: pass options to semver.valid() for loose version validation (#835) (@mldangelo)Documentation
1d28d5e#836 fix typos and update -n CLI option documentation (#836) (@mldangelo)Dependencies
120968b#840@npmcli/template-oss@4.29.0(#840)Chores
44d7130#824 bump @npmcli/eslint-config from 5.1.0 to 6.0.0 (#824) (@dependabot[bot])7073576#820 reorder parameters in invalid-versions.js test (#820) (@reggi)5816d4c#829 bump @npmcli/template-oss from 4.28.0 to 4.28.1 (#829) (@dependabot[bot], @npm-cli-bot)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - "after 10am and before 4pm every weekday" in timezone Europe/Berlin.
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.