Solution #1660
Annotations
6 errors and 4 warnings
run_linter (20.x):
src/components/ErrorBoundary/ErrorBoundry.tsx#L12
Useless constructor
|
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
|