Skip to content

Solution

Solution #2058

Triggered via pull request November 15, 2024 11:20
Status Failure
Total duration 42s
Artifacts

lint.yml

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

Annotations

2 errors and 5 warnings
run_linter (20.x): src/hooks/useTodos.ts#L15
'todos' is already declared in the upper scope on line 12 column 10
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/context/TodoContext.tsx#L70
React Hook useMemo has missing dependencies: 'addTodo', 'deleteCompletedTodos', 'deleteTodo', 'fetchTodos', 'onFocus', 'showError', 'updateTodo', and 'updatedAllTodo'. Either include them or remove the dependency array
run_linter (20.x): src/hooks/useSelectedTodo.ts#L19
React Hook useLayoutEffect has a missing dependency: 'handleKeyPress'. Either include it or remove the dependency array
run_linter (20.x): src/hooks/useTodoFormManager.ts#L24
React Hook useLayoutEffect has a missing dependency: 'onFocus'. Either include it or remove the dependency array