Skip to content

Adopt prettier

Adopt prettier #971

Triggered via pull request September 15, 2024 04:12
@4vanger4vanger
synchronize #392
ak/prettier
Status Success
Total duration 4m 58s
Artifacts

build.yml

on: pull_request
Matrix: build-lint
Fit to window
Zoom out
Zoom in

Annotations

14 warnings
build-lint (backend)
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 (backend)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-node@v1, actions/cache@v3. 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 (frontend)
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 (frontend)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-node@v1, actions/cache@v3. 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 (frontend): frontend/src/API/use/useFeed.ts#L133
React Hook useEffect has missing dependencies: 'api.userAPI', 'setCachedPosts', and 'setSorting'. Either include them or remove the dependency array. If 'setSorting' changes too often, find the parent component that defines it and wrap that definition in useCallback
build-lint (frontend): frontend/src/API/use/usePost.ts#L172
React Hook useMemo has missing dependencies: 'setCachedComments' and 'updatePost'. Either include them or remove the dependency array
build-lint (frontend): frontend/src/API/use/usePost.ts#L205
React Hook useEffect has a missing dependency: 'appState.cache'. Either include it or remove the dependency array
build-lint (frontend): frontend/src/API/use/useUserProfile.ts#L51
React Hook useEffect has a missing dependency: 'refresh'. Either include it or remove the dependency array
build-lint (frontend): frontend/src/Components/ContentComponent.tsx#L616
React Hook useEffect has missing dependencies: 'appState', 'checkAutoCut', and 'props.currentUsername'. Either include them or remove the dependency array
build-lint (frontend): frontend/src/Components/ContentComponent.tsx#L680
React Hook useEffect has a missing dependency: 'props'. Either include it or remove the dependency array. However, 'props' will change when *any* prop changes, so the preferred fix is to destructure the 'props' object outside of the useEffect call and refer to those specific props inside useEffect
build-lint (frontend): frontend/src/Components/CreateCommentComponent.tsx#L163
React Hook useEffect has missing dependencies: 'api.postAPI' and 'username'. Either include them or remove the dependency array
build-lint (frontend): frontend/src/Components/CreateCommentComponent.tsx#L283
React Hook useEffect has a missing dependency: 'props.text'. Either include it or remove the dependency array
build-lint (frontend): frontend/src/Components/CreateCommentComponent.tsx#L406
Unexpected any. Specify a different type
build-lint (frontend): frontend/src/Components/CreateCommentComponent.tsx#L621
React Hook useEffect has a missing dependency: 'handleResize'. Either include it or remove the dependency array