diff --git a/src/index.ts b/src/index.ts index e6a56d8..bb74708 100644 --- a/src/index.ts +++ b/src/index.ts @@ -3,14 +3,17 @@ import { onlyExportComponents } from "./only-export-components.ts"; export const rules = { "only-export-components": onlyExportComponents, }; + const plugin = { rules }; export const configs = { recommended: { + name: "react-refresh/recommended", plugins: { "react-refresh": plugin }, rules: { "react-refresh/only-export-components": "error" }, }, vite: { + name: "react-refresh/vite", plugins: { "react-refresh": plugin }, rules: { "react-refresh/only-export-components": [