re-enable web linter

This commit is contained in:
Blake Blackshear 2024-05-05 11:25:54 -05:00
parent 0f658c6327
commit 0f6c4304eb
3 changed files with 7 additions and 3 deletions

View File

@ -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

View File

@ -45,6 +45,7 @@ function WsWithConfig({ children }: WsWithConfigType) {
return <WsProvider>{children}</WsProvider>;
}
// eslint-disable-next-line react-refresh/only-export-components
export function useApiHost() {
return baseUrl;
}

View File

@ -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);