Skip to content

Commit 42a1805

Browse files
committed
Explicit v10 support (fixes #106) [publish]
1 parent 199793e commit 42a1805

3 files changed

Lines changed: 5 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# Changelog
22

3-
## Unreleased
3+
## 0.5.1
44

5+
- Mark ESLint v10 as supported
56
- Support false positives with TypeScript function overloading (fixes [#105](https://github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/105))
67
- Support nested function calls for extraHOCs (fixes [#104](https://github.com/ArnaudBarre/eslint-plugin-react-refresh/issues/104))
78

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-plugin-react-refresh",
3-
"version": "0.5.0",
3+
"version": "0.5.1",
44
"type": "module",
55
"license": "MIT",
66
"scripts": {
@@ -15,7 +15,7 @@
1515
"experimentalOperatorPosition": "start"
1616
},
1717
"peerDependencies": {
18-
"eslint": ">=9"
18+
"eslint": "^9 || ^10"
1919
},
2020
"devDependencies": {
2121
"@arnaud-barre/eslint-config": "^6.1.2",

src/only-export-components.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -299,9 +299,7 @@ export const onlyExportComponents: TSESLint.RuleModule<
299299
: null;
300300
if (declaration?.type === "TSDeclareFunction") continue;
301301
hasExports = true;
302-
if (declaration) {
303-
handleExportDeclaration(declaration);
304-
}
302+
if (declaration) handleExportDeclaration(declaration);
305303
for (const specifier of node.specifiers) {
306304
handleExportIdentifier(
307305
specifier.exported.type === "Identifier"

0 commit comments

Comments
 (0)