Solution #1659
Annotations
10 errors and 4 warnings
Run npm run lint:
src/components/ErrorBoundary/ErrorBoundry.tsx#L14
State initialization should be in a class property
|
Run npm run lint:
src/components/Posts/NewCommentForm/NewCommentForm.tsx#L8
'NewCommentForm' is already defined
|
Run npm run lint:
src/components/Posts/NewCommentForm/NewCommentForm.tsx#L8
'NewCommentForm' is already defined
|
Run npm run lint:
src/components/Posts/PostList/PostList.tsx#L9
Component definition is missing display name
|
Run npm run lint:
src/components/Posts/PostList/PostListItem.tsx#L10
Component definition is missing display name
|
Run npm run lint:
src/components/Posts/PostList/PostListItem.tsx#L13
'post' is already declared in the upper scope on line 10 column 60
|
Run npm run lint:
src/hooks/useCommentForm.ts#L51
Expected an assignment or function call and instead saw an expression
|
Run npm run lint:
src/hooks/useCommentForm.ts#L60
Expected an assignment or function call and instead saw an expression
|
Run npm run lint:
src/hooks/useCommentForm.ts#L69
Expected an assignment or function call and instead saw an expression
|
Run npm run lint:
src/hooks/useComments.ts#L24
Expected an error object to be thrown
|
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/
|
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 npm run lint:
src/components/Posts/PostDetails/PostDetails.tsx#L26
React Hook useLayoutEffect has a missing dependency: 'fetchComments'. Either include it or remove the dependency array
|
Run npm run lint:
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
|
Loading