Skip to content

Commit

Permalink
fix: added name attribute for eslint config inspector (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
NishargShah authored Feb 9, 2025
1 parent 826d8c9 commit f36623b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down

0 comments on commit f36623b

Please sign in to comment.