diff --git a/package.json b/package.json index bf806fa..6179ac0 100644 --- a/package.json +++ b/package.json @@ -67,7 +67,7 @@ "eslint-plugin-react": "^7.37.2", "eslint-plugin-react-compiler": "19.0.0-beta-df7b47d-20241124", "eslint-plugin-react-hooks": "^5.0.0", - "eslint-plugin-react-refresh": "0.4.14", + "eslint-plugin-react-refresh": "0.4.16", "eslint-plugin-regexp": "^2.7.0", "eslint-plugin-storybook": "0.11.1", "eslint-plugin-testing-library": "^7.0.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9610f44..63d2006 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -69,8 +69,8 @@ importers: specifier: ^5.0.0 version: 5.0.0(eslint@9.15.0(jiti@2.4.1)) eslint-plugin-react-refresh: - specifier: 0.4.14 - version: 0.4.14(eslint@9.15.0(jiti@2.4.1)) + specifier: 0.4.16 + version: 0.4.16(eslint@9.15.0(jiti@2.4.1)) eslint-plugin-regexp: specifier: ^2.7.0 version: 2.7.0(eslint@9.15.0(jiti@2.4.1)) @@ -2596,10 +2596,10 @@ packages: peerDependencies: eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0 - eslint-plugin-react-refresh@0.4.14: - resolution: {integrity: sha512-aXvzCTK7ZBv1e7fahFuR3Z/fyQQSIQ711yPgYRj+Oj64tyTgO4iQIDmYXDBqvSWQ/FA4OSCsXOStlF+noU0/NA==} + eslint-plugin-react-refresh@0.4.16: + resolution: {integrity: sha512-slterMlxAhov/DZO8NScf6mEeMBBXodFUolijDvrtTxyezyLoTQaa73FyYus/VbTdftd8wBgBxPMRk3poleXNQ==} peerDependencies: - eslint: '>=7' + eslint: '>=8.40' eslint-plugin-react@7.37.2: resolution: {integrity: sha512-EsTAnj9fLVr/GZleBLFbj/sSuXeWmp1eXIN60ceYnZveqEaUCyW4X+Vh4WTdUhCkW4xutXYqTXCUSyqD4rB75w==} @@ -7897,7 +7897,7 @@ snapshots: dependencies: eslint: 9.15.0(jiti@2.4.1) - eslint-plugin-react-refresh@0.4.14(eslint@9.15.0(jiti@2.4.1)): + eslint-plugin-react-refresh@0.4.16(eslint@9.15.0(jiti@2.4.1)): dependencies: eslint: 9.15.0(jiti@2.4.1) diff --git a/src/configs/react.ts b/src/configs/react.ts index d3e8edf..975549e 100644 --- a/src/configs/react.ts +++ b/src/configs/react.ts @@ -17,7 +17,7 @@ export const reactConfig = async () => { interopDefault(import("eslint-plugin-react")), interopDefault(import("eslint-plugin-jsx-a11y")), import("eslint-plugin-react-hooks"), - import("eslint-plugin-react-refresh"), + interopDefault(import("eslint-plugin-react-refresh")), interopDefault(import("eslint-plugin-react-compiler")), ]); diff --git a/src/rules.gen.d.ts b/src/rules.gen.d.ts index 47aa320..366de1d 100644 --- a/src/rules.gen.d.ts +++ b/src/rules.gen.d.ts @@ -9802,9 +9802,10 @@ type ReactHooksExhaustiveDeps = []|[{ }] // ----- react-refresh/only-export-components ----- type ReactRefreshOnlyExportComponents = []|[{ + allowExportNames?: string[] allowConstantExport?: boolean + customHOCs?: string[] checkJS?: boolean - allowExportNames?: string[] }] // ----- react/boolean-prop-naming ----- type ReactBooleanPropNaming = []|[{ diff --git a/src/stubs.d.ts b/src/stubs.d.ts index a4f8d53..2b42b9d 100644 --- a/src/stubs.d.ts +++ b/src/stubs.d.ts @@ -37,14 +37,6 @@ declare module "eslint-plugin-jsx-a11y" { export default plugin; } -declare module "eslint-plugin-react-refresh" { - import type { ESLint } from "eslint"; - - const plugin: ESLint.Plugin; - - export default plugin; -} - // TODO: remove when https://github.com/eslint-community/eslint-plugin-eslint-comments/issues/214 is resolved. declare module "@eslint-community/eslint-plugin-eslint-comments/configs" { import type { Linter } from "eslint";