Skip to content

added global context and started example with Banner #112

added global context and started example with Banner

added global context and started example with Banner #112

Triggered via pull request March 24, 2024 22:23
Status Failure
Total duration 41s
Artifacts

lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

4 errors and 11 warnings
linting: client/src/components/BannerSection.tsx#L7
'useHistory' is defined but never used
linting: client/src/components/BannerSection.tsx#L55
'handleOpenModal' is assigned a value but never used
linting: client/src/components/BannerSection.tsx#L70
Unexpected use of 'history'
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@v3, actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
linting: client/src/components/BannerSection.tsx#L7
'useHistory' is defined but never used
linting: client/src/components/BannerSection.tsx#L55
'handleOpenModal' is assigned a value but never used
linting: client/src/components/FAQs.tsx#L61
Redundant alt attribute. Screen-readers already announce `img` tags as an image. You don’t need to use the words `image`, `photo,` or `picture` (or any specified custom words) in the alt prop
linting: client/src/components/Users/Auth/SetNewPassword.tsx#L155
Redundant alt attribute. Screen-readers already announce `img` tags as an image. You don’t need to use the words `image`, `photo,` or `picture` (or any specified custom words) in the alt prop
linting: client/src/components/Users/Auth/SignUpCitizen/SignUpCitizen.tsx#L59
React Hook useEffect has missing dependencies: 'formData' and 'registerUserMutation'. Either include them or remove the dependency array
linting: client/src/components/Users/Auth/SignUpCitizen/SignUpCitizen.tsx#L66
React Hook useEffect has missing dependencies: 'image', 'updateProfileMutation', and 'user'. Either include them or remove the dependency array
linting: client/src/providers/UserProvider.tsx#L65
React Hook React.useEffect has a missing dependency: 'setUserTimeout'. Either include it or remove the dependency array
linting: client/src/views/EmailVerification.tsx#L33
React Hook React.useEffect has a missing dependency: 'history'. Either include it or remove the dependency array
linting: client/src/views/Login.tsx#L14
React Hook useEffect has a missing dependency: 'modalContext'. Either include it or remove the dependency array
linting: client/src/views/SearchResults.tsx#L88
The 'fetchSearchData' function makes the dependencies of useEffect Hook (at line 131) change on every render. Move it inside the useEffect callback. Alternatively, wrap the definition of 'fetchSearchData' in its own useCallback() Hook