Product description #27
5 errors and 2 warnings
ESLint found 5 errors and 2 warnings
Annotations
Check failure on line 10 in app/products/[id]/page.jsx
github-actions / ESLint
app/products/[id]/page.jsx#L10
React Hook "useTheme" is called in function "product" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use" (react-hooks/rules-of-hooks)
Check failure on line 11 in app/products/[id]/page.jsx
github-actions / ESLint
app/products/[id]/page.jsx#L11
React Hook "useProducts" is called in function "product" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use" (react-hooks/rules-of-hooks)
Check failure on line 12 in app/products/[id]/page.jsx
github-actions / ESLint
app/products/[id]/page.jsx#L12
React Hook "useState" is called in function "product" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use" (react-hooks/rules-of-hooks)
Check failure on line 13 in app/products/[id]/page.jsx
github-actions / ESLint
app/products/[id]/page.jsx#L13
React Hook "useState" is called in function "product" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use" (react-hooks/rules-of-hooks)
Check failure on line 16 in app/products/[id]/page.jsx
github-actions / ESLint
app/products/[id]/page.jsx#L16
React Hook "useEffect" is called in function "product" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use" (react-hooks/rules-of-hooks)
Check warning on line 16 in app/products/[id]/page.jsx
github-actions / ESLint
app/products/[id]/page.jsx#L16
React Hook useEffect contains a call to 'setProduct'. Without a list of dependencies, this can lead to an infinite chain of updates. To fix this, pass [products, params.id] as a second argument to the useEffect Hook (react-hooks/exhaustive-deps)
Check warning on line 29 in app/products/[id]/page.jsx
github-actions / ESLint
app/products/[id]/page.jsx#L29
Image elements must have an alt prop, either with meaningful text, or an empty string for decorative images (jsx-a11y/alt-text)