From 66ebb460d8281bbe3f2ada292107a8c38090b608 Mon Sep 17 00:00:00 2001 From: Nisharg Shah Date: Sat, 25 Jan 2025 11:46:40 +0000 Subject: [PATCH] fix: added name attribute for eslint config inspector --- src/index.ts | 3 +++ 1 file changed, 3 insertions(+) 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": [