Develop #2692
Annotations
10 errors and 8 warnings
run_linter (20.x):
src/App.tsx#L13
This line has a length of 85. Maximum allowed is 80
|
run_linter (20.x):
src/context/CartContext/CartContext.tsx#L46
Unexpected any. Specify a different type
|
run_linter (20.x):
src/hooks/fetchProducts/useFetchProducts.ts#L30
'error' is already declared in the upper scope on line 7 column 10
|
run_linter (20.x):
src/layout/Footer.tsx#L13
Unexpected console statement
|
run_linter (20.x):
src/layout/Header.tsx#L14
Component definition is missing display name
|
run_linter (20.x):
src/modules/AccessoriesPage/AccessoriesPage.tsx#L4
'lodash' should be listed in the project's dependencies. Run 'npm i -S lodash' to add it
|
run_linter (20.x):
src/modules/AccessoriesPage/AccessoriesPage.tsx#L11
This line has a length of 99. Maximum allowed is 80
|
run_linter (20.x):
src/modules/CartPage/CartPage.tsx#L28
Unexpected any. Specify a different type
|
run_linter (20.x):
src/modules/CartPage/CartPage.tsx#L36
Unexpected any. Specify a different type
|
run_linter (20.x):
src/modules/CartPage/CartPage.tsx#L41
Expected an assignment or function call and instead saw an expression
|
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/modules/AccessoriesPage/AccessoriesPage.tsx#L38
React Hook useCallback received a function whose dependencies are unknown. Pass an inline function instead
|
run_linter (20.x):
src/modules/HomePage/HomePage.tsx#L70
React Hook useEffect has a missing dependency: 'categories'. Either include it or remove the dependency array
|
run_linter (20.x):
src/modules/PhonesPage/PhonesPage.tsx#L38
React Hook useCallback received a function whose dependencies are unknown. Pass an inline function instead
|
run_linter (20.x):
src/modules/ProductDetailsPage/ProductDetailsPage.tsx#L96
React Hook useEffect has missing dependencies: 'fetchProducts' and 'fetchSuggestedProducts'. Either include them or remove the dependency array
|
run_linter (20.x):
src/modules/ProductsPage/ProductsPage.tsx#L45
React Hook useCallback received a function whose dependencies are unknown. Pass an inline function instead
|
run_linter (20.x):
src/modules/TabletsPage/TabletsPage.tsx#L36
React Hook useCallback received a function whose dependencies are unknown. Pass an inline function instead
|