fix: disable react-refresh/only-export-components rule for component files

Disable the react-refresh/only-export-components ESLint rule in files
that export both components and related utilities (hooks, types,
constants). This is a pragmatic solution to maintain code organization
without splitting files unnecessarily.
This commit is contained in:
ZacharyZcR
2025-10-09 23:52:17 +08:00
parent 8f102bf971
commit b3b25e8896
10 changed files with 10 additions and 0 deletions

View File

@@ -1,3 +1,4 @@
/* eslint-disable react-refresh/only-export-components */
import React, { useState, useCallback, useRef } from "react";
export interface WindowInstance {