Skip to content

feat(useColorScheme): new hook added #78

feat(useColorScheme): new hook added

feat(useColorScheme): new hook added #78

Triggered via push July 29, 2024 12:11
Status Failure
Total duration 45s
Artifacts

main.yml

on: push
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

38 errors and 23 warnings
Build, lint, and test on Node 18.x and ubuntu-latest: src/useColorScheme/index.tsx#L4
Replace `·window.matchMedia·&&` with `⏎····window.matchMedia·&&⏎···`
Build, lint, and test on Node 18.x and ubuntu-latest: src/useColorScheme/index.tsx#L6
Replace `isDarkMode·?·'dark'·:·'light'` with `⏎····isDarkMode·?·'dark'·:·'light'⏎··`
Build, lint, and test on Node 18.x and ubuntu-latest: src/useColorScheme/index.tsx#L9
Replace `⏎····window.matchMedia('(prefers-color-scheme:·dark)').addEventListener('change',·event` with `····window⏎······.matchMedia('(prefers-color-scheme:·dark)')⏎······.addEventListener('change',·(event)`
Build, lint, and test on Node 18.x and ubuntu-latest: src/useColorScheme/index.tsx#L11
Replace `······const·newColorScheme·=·event.matches·?·"dark"·:·"light"` with `········const·newColorScheme·=·event.matches·?·'dark'·:·'light';`
Build, lint, and test on Node 18.x and ubuntu-latest: src/useColorScheme/index.tsx#L12
Replace `······` with `········`
Build, lint, and test on Node 18.x and ubuntu-latest: src/useColorScheme/index.tsx#L16
Replace `.matchMedia('(prefers-color-scheme:·dark)').removeEventListener('change',·event` with `⏎········.matchMedia('(prefers-color-scheme:·dark)')⏎········.removeEventListener('change',·(event)`
Build, lint, and test on Node 18.x and ubuntu-latest: src/useColorScheme/index.tsx#L17
Replace `········setColorScheme(event.matches·?·"dark"·:·"light"` with `··········setColorScheme(event.matches·?·'dark'·:·'light'`
Build, lint, and test on Node 16.x and ubuntu-latest
The job was canceled because "_18_x_ubuntu-latest" failed.
Build, lint, and test on Node 16.x and ubuntu-latest: src/useColorScheme/index.tsx#L4
Replace `·window.matchMedia·&&` with `⏎····window.matchMedia·&&⏎···`
Build, lint, and test on Node 16.x and ubuntu-latest: src/useColorScheme/index.tsx#L6
Replace `isDarkMode·?·'dark'·:·'light'` with `⏎····isDarkMode·?·'dark'·:·'light'⏎··`
Build, lint, and test on Node 16.x and ubuntu-latest: src/useColorScheme/index.tsx#L9
Replace `⏎····window.matchMedia('(prefers-color-scheme:·dark)').addEventListener('change',·event` with `····window⏎······.matchMedia('(prefers-color-scheme:·dark)')⏎······.addEventListener('change',·(event)`
Build, lint, and test on Node 16.x and ubuntu-latest: src/useColorScheme/index.tsx#L11
Replace `······const·newColorScheme·=·event.matches·?·"dark"·:·"light"` with `········const·newColorScheme·=·event.matches·?·'dark'·:·'light';`
Build, lint, and test on Node 16.x and ubuntu-latest: src/useColorScheme/index.tsx#L12
Replace `······` with `········`
Build, lint, and test on Node 16.x and ubuntu-latest: src/useColorScheme/index.tsx#L16
Replace `.matchMedia('(prefers-color-scheme:·dark)').removeEventListener('change',·event` with `⏎········.matchMedia('(prefers-color-scheme:·dark)')⏎········.removeEventListener('change',·(event)`
Build, lint, and test on Node 16.x and ubuntu-latest: src/useColorScheme/index.tsx#L17
Replace `········setColorScheme(event.matches·?·"dark"·:·"light"` with `··········setColorScheme(event.matches·?·'dark'·:·'light'`
Build, lint, and test on Node 16.x and windows-latest
The job was canceled because "_18_x_ubuntu-latest" failed.
Build, lint, and test on Node 16.x and windows-latest
The operation was canceled.
Build, lint, and test on Node 18.x and macOS-latest
The job was canceled because "_18_x_ubuntu-latest" failed.
Build, lint, and test on Node 16.x and macOS-latest
The job was canceled because "_18_x_ubuntu-latest" failed.
Build, lint, and test on Node 16.x and macOS-latest
The operation was canceled.
Build, lint, and test on Node 18.x and macOS-latest: src/useColorScheme/index.tsx#L4
Replace `·window.matchMedia·&&` with `⏎····window.matchMedia·&&⏎···`
Build, lint, and test on Node 18.x and macOS-latest: src/useColorScheme/index.tsx#L6
Replace `isDarkMode·?·'dark'·:·'light'` with `⏎····isDarkMode·?·'dark'·:·'light'⏎··`
Build, lint, and test on Node 18.x and macOS-latest: src/useColorScheme/index.tsx#L9
Replace `⏎····window.matchMedia('(prefers-color-scheme:·dark)').addEventListener('change',·event` with `····window⏎······.matchMedia('(prefers-color-scheme:·dark)')⏎······.addEventListener('change',·(event)`
Build, lint, and test on Node 18.x and macOS-latest: src/useColorScheme/index.tsx#L11
Replace `······const·newColorScheme·=·event.matches·?·"dark"·:·"light"` with `········const·newColorScheme·=·event.matches·?·'dark'·:·'light';`
Build, lint, and test on Node 18.x and macOS-latest: src/useColorScheme/index.tsx#L12
Replace `······` with `········`
Build, lint, and test on Node 18.x and macOS-latest: src/useColorScheme/index.tsx#L16
Replace `.matchMedia('(prefers-color-scheme:·dark)').removeEventListener('change',·event` with `⏎········.matchMedia('(prefers-color-scheme:·dark)')⏎········.removeEventListener('change',·(event)`
Build, lint, and test on Node 18.x and macOS-latest: src/useColorScheme/index.tsx#L17
Replace `········setColorScheme(event.matches·?·"dark"·:·"light"` with `··········setColorScheme(event.matches·?·'dark'·:·'light'`
Build, lint, and test on Node 18.x and windows-latest
The job was canceled because "_18_x_ubuntu-latest" failed.
Build, lint, and test on Node 18.x and windows-latest
The operation was canceled.
Build, lint, and test on Node 18.x and ubuntu-latest
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Build, lint, and test on Node 18.x and ubuntu-latest
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Build, lint, and test on Node 18.x and ubuntu-latest: src/useAsync/index.tsx#L17
React Hook useCallback was passed a dependency list that is not an array literal. This means we can't statically verify whether you've passed the correct dependencies
Build, lint, and test on Node 18.x and ubuntu-latest: src/useAsync/index.tsx#L17
React Hook useCallback has a missing dependency: 'callback'. Either include it or remove the dependency array. If 'callback' changes too often, find the parent component that defines it and wrap that definition in useCallback
Build, lint, and test on Node 18.x and ubuntu-latest: src/useClickOutside/index.tsx#L17
Assignments to the 'events' variable from inside React Hook useEffect will be lost after each render. To preserve the value over time, store it in a useRef Hook and keep the mutable value in the '.current' property. Otherwise, you can move this variable directly inside useEffect
Build, lint, and test on Node 18.x and ubuntu-latest: src/useDebounce/index.tsx#L11
React Hook useEffect has a missing dependency: 'clear'. Either include it or remove the dependency array
Build, lint, and test on Node 18.x and ubuntu-latest: src/useHash/index.tsx#L15
React Hook React.useEffect has a missing dependency: 'hashChangeHandler'. Either include it or remove the dependency array
Build, lint, and test on Node 18.x and ubuntu-latest: src/useStateJson/index.tsx#L9
React Hook useCallback has a missing dependency: 'json'. Either include it or remove the dependency array
Build, lint, and test on Node 18.x and ubuntu-latest: src/useUpdate/index.tsx#L15
React Hook useEffect has a missing dependency: 'callback'. Either include it or remove the dependency array. If 'callback' changes too often, find the parent component that defines it and wrap that definition in useCallback
Build, lint, and test on Node 16.x and ubuntu-latest: src/useAsync/index.tsx#L17
React Hook useCallback was passed a dependency list that is not an array literal. This means we can't statically verify whether you've passed the correct dependencies
Build, lint, and test on Node 16.x and ubuntu-latest: src/useAsync/index.tsx#L17
React Hook useCallback has a missing dependency: 'callback'. Either include it or remove the dependency array. If 'callback' changes too often, find the parent component that defines it and wrap that definition in useCallback
Build, lint, and test on Node 16.x and ubuntu-latest: src/useClickOutside/index.tsx#L17
Assignments to the 'events' variable from inside React Hook useEffect will be lost after each render. To preserve the value over time, store it in a useRef Hook and keep the mutable value in the '.current' property. Otherwise, you can move this variable directly inside useEffect
Build, lint, and test on Node 16.x and ubuntu-latest: src/useDebounce/index.tsx#L11
React Hook useEffect has a missing dependency: 'clear'. Either include it or remove the dependency array
Build, lint, and test on Node 16.x and ubuntu-latest: src/useHash/index.tsx#L15
React Hook React.useEffect has a missing dependency: 'hashChangeHandler'. Either include it or remove the dependency array
Build, lint, and test on Node 16.x and ubuntu-latest: src/useStateJson/index.tsx#L9
React Hook useCallback has a missing dependency: 'json'. Either include it or remove the dependency array
Build, lint, and test on Node 16.x and ubuntu-latest: src/useUpdate/index.tsx#L15
React Hook useEffect has a missing dependency: 'callback'. Either include it or remove the dependency array. If 'callback' changes too often, find the parent component that defines it and wrap that definition in useCallback
Build, lint, and test on Node 18.x and macOS-latest: src/useAsync/index.tsx#L17
React Hook useCallback was passed a dependency list that is not an array literal. This means we can't statically verify whether you've passed the correct dependencies
Build, lint, and test on Node 18.x and macOS-latest: src/useAsync/index.tsx#L17
React Hook useCallback has a missing dependency: 'callback'. Either include it or remove the dependency array. If 'callback' changes too often, find the parent component that defines it and wrap that definition in useCallback
Build, lint, and test on Node 18.x and macOS-latest: src/useClickOutside/index.tsx#L17
Assignments to the 'events' variable from inside React Hook useEffect will be lost after each render. To preserve the value over time, store it in a useRef Hook and keep the mutable value in the '.current' property. Otherwise, you can move this variable directly inside useEffect
Build, lint, and test on Node 18.x and macOS-latest: src/useDebounce/index.tsx#L11
React Hook useEffect has a missing dependency: 'clear'. Either include it or remove the dependency array
Build, lint, and test on Node 18.x and macOS-latest: src/useHash/index.tsx#L15
React Hook React.useEffect has a missing dependency: 'hashChangeHandler'. Either include it or remove the dependency array
Build, lint, and test on Node 18.x and macOS-latest: src/useStateJson/index.tsx#L9
React Hook useCallback has a missing dependency: 'json'. Either include it or remove the dependency array
Build, lint, and test on Node 18.x and macOS-latest: src/useUpdate/index.tsx#L15
React Hook useEffect has a missing dependency: 'callback'. Either include it or remove the dependency array. If 'callback' changes too often, find the parent component that defines it and wrap that definition in useCallback