Skip to content

Solution

Solution #1660

Triggered via pull request November 13, 2024 12:30
@ab3MNab3MN
synchronize #1196
ab3MN:develop
Status Failure
Total duration 52s
Artifacts

lint.yml

on: pull_request
Matrix: run_linter
Fit to window
Zoom out
Zoom in

Annotations

6 errors and 4 warnings
run_linter (20.x): src/components/Posts/NewCommentForm/NewCommentForm.tsx#L8
'NewCommentForm' is already defined
run_linter (20.x): src/components/Posts/NewCommentForm/NewCommentForm.tsx#L8
'NewCommentForm' is already defined
run_linter (20.x): src/components/Posts/PostList/PostListItem.tsx#L10
Component definition is missing display name
run_linter (20.x): src/components/Posts/PostList/PostListItem.tsx#L13
'post' is already declared in the upper scope on line 10 column 60
run_linter (20.x)
Process completed with exit code 1.
run_linter (20.x)
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/
run_linter (20.x)
The following actions use a deprecated Node.js version 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/
run_linter (20.x): src/components/Posts/PostDetails/PostDetails.tsx#L26
React Hook useLayoutEffect has a missing dependency: 'fetchComments'. Either include it or remove the dependency array
run_linter (20.x): src/context/PostContext.tsx#L59
The 'handleSelectUser' function makes the dependencies of useMemo Hook (at line 79) change on every render. Move it inside the useMemo callback. Alternatively, wrap the definition of 'handleSelectUser' in its own useCallback() Hook