mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-11 13:45:25 +03:00
re-enable web linter
This commit is contained in:
parent
0f658c6327
commit
0f6c4304eb
6
.github/workflows/pull_request.yml
vendored
6
.github/workflows/pull_request.yml
vendored
@ -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
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user