Skip to content

refactor: modify usePermission for compatible with TypeScript 4.5 #1824

refactor: modify usePermission for compatible with TypeScript 4.5

refactor: modify usePermission for compatible with TypeScript 4.5 #1824

Triggered via pull request March 1, 2024 11:52
Status Failure
Total duration 5m 21s
Artifacts

check-codebase.yml

on: pull_request
Matrix: Unit tests
Fit to window
Zoom out
Zoom in

Annotations

8 errors and 26 warnings
Linting: src/usePermission.ts#L1
Replace `"react"` with `'react'`
Linting: src/usePermission.ts#L2
Replace `"./misc/util"` with `'./misc/util'`
Linting: src/usePermission.ts#L4
Replace `""` with `''`
Linting: src/usePermission.ts#L7
Replace `""` with `''`
Linting: src/usePermission.ts#L17
Replace `""` with `''`
Linting: src/usePermission.ts#L24
Replace `"change"` with `'change'`
Linting: src/usePermission.ts#L30
Replace `"change"` with `'change'`
Linting
Process completed with exit code 1.
Linting
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-node@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Linting
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/
Linting: src/factory/createBreakpoint.ts#L21
React Hook useMemo has an unnecessary dependency: 'breakpoints'. Either exclude it or remove the dependency array. Outer scope values like 'breakpoints' aren't valid dependencies because mutating them doesn't re-render the component
Linting: src/factory/createHTMLMediaHook.ts#L238
React Hook useEffect has missing dependencies: 'controls', 'props.autoPlay', and 'setState'. Either include them or remove the dependency array
Linting: src/factory/createMemo.ts#L6
React Hook useMemo 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
Linting: src/factory/createMemo.ts#L6
React Hook useMemo has a missing dependency: 'args'. Either include it or remove the dependency array
Linting: src/factory/createRouter.ts#L16
'Router' is assigned a value but never used
Linting: src/useAsyncFn.ts#L64
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
Linting: src/useAsyncFn.ts#L64
React Hook useCallback has missing dependencies: 'fn', 'isMounted', and 'state.loading'. Either include them or remove the dependency array. If 'fn' changes too often, find the parent component that defines it and wrap that definition in useCallback
Linting: src/useAsyncRetry.ts#L25
React Hook useCallback has a spread element in its dependency array. This means we can't statically verify whether you've passed the correct dependencies
Linting: src/useBattery.ts#L78
React Hook useEffect has a missing dependency: 'state'. Either include it or remove the dependency array
Linting: src/useCopyToClipboard.ts#L65
React Hook useCallback has missing dependencies: 'isMounted' and 'setState'. Either include them or remove the dependency array
Unit tests (ubuntu-latest, 16)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-node@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Unit tests (ubuntu-latest, 16)
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/
Unit tests (ubuntu-latest, 12)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-node@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Unit tests (ubuntu-latest, 12)
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
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-node@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Build
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/
Unit tests (ubuntu-latest, 14)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-node@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Unit tests (ubuntu-latest, 14)
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/
Storybook
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-node@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Storybook
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/
Unit tests (macos-latest, 14)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-node@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Unit tests (macos-latest, 14)
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/
Unit tests (macos-latest, 16)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-node@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Unit tests (macos-latest, 16)
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/