diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 26d729bdd..2f81175e3 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -40,9 +40,9 @@ jobs: node-version: 16.x - run: npm install working-directory: ./web - # - name: Lint - # run: npm run lint - # working-directory: ./web + - name: Lint + run: npm run lint + working-directory: ./web web_test: name: Web - Test diff --git a/web/src/api/index.tsx b/web/src/api/index.tsx index b42c61fe3..cba5b6962 100644 --- a/web/src/api/index.tsx +++ b/web/src/api/index.tsx @@ -45,6 +45,7 @@ function WsWithConfig({ children }: WsWithConfigType) { return {children}; } +// eslint-disable-next-line react-refresh/only-export-components export function useApiHost() { return baseUrl; } diff --git a/web/src/context/theme-provider.tsx b/web/src/context/theme-provider.tsx index 70dfaced1..7b26780d5 100644 --- a/web/src/context/theme-provider.tsx +++ b/web/src/context/theme-provider.tsx @@ -12,6 +12,7 @@ type ColorScheme = | "theme-red" | "theme-default"; +// eslint-disable-next-line react-refresh/only-export-components export const colorSchemes: ColorScheme[] = [ "theme-blue", "theme-gold", @@ -25,6 +26,7 @@ export const colorSchemes: ColorScheme[] = [ ]; // Helper function to generate friendly color scheme names +// eslint-disable-next-line react-refresh/only-export-components export const friendlyColorSchemeName = (className: string): string => { const words = className.split("-").slice(1); // Exclude the first word (e.g., 'theme') return words @@ -136,6 +138,7 @@ export function ThemeProvider({ ); } +// eslint-disable-next-line react-refresh/only-export-components export const useTheme = () => { const context = useContext(ThemeProviderContext);