[Bug]: Current fresh build warnings from ESLint
Opened this issue · 3 comments
gbowne1 commented
Here is the current warnings from the build as of Thu, Nov. 2nd, 2023 6:30pm USA time.
Compiled with warnings.
[eslint]
src/components/CookieModal/CookieModal.jsx
Line 16:5: React Hook useEffect contains a call to 'setCookiesAccepted'. Without a list of dependencies, this can lead to an infinite chain of updates. To fix this, pass [] as a second argument to the useEffect Hook react-hooks/exhaustive-deps
src/components/CustomTabPanel/CustomTabPanel.jsx
Line 2:15: 'Button' is defined but never used no-unused-vars
Line 2:23: 'Tabs' is defined but never used no-unused-vars
Line 2:29: 'Tab' is defined but never used no-unused-vars
src/components/PostForm/PostForm.jsx
Line 6:8: 'InsertPhotoIcon' is defined but never used no-unused-vars
Line 7:8: 'VideoFileIcon' is defined but never used no-unused-vars
Line 8:8: 'MoodIcon' is defined but never used no-unused-vars
src/data/placeholderImageUrl.js
Line 1:1: Assign literal to a variable before exporting as module default import/no-anonymous-default-export
src/pages/AdminDashboard/AdminDashboard.jsx
Line 9:12: 'users' is assigned a value but never used no-unused-vars
src/pages/Events/CreateEventModal/CreateEventModal.jsx
Line 108:25: Expected '===' and instead saw '==' eqeqeq
src/pages/Profile/Profile.jsx
Line 60:11: 'handleChange' is assigned a value but never used no-unused-vars
Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.
WARNING in [eslint]
src/components/CookieModal/CookieModal.jsx
Line 16:5: React Hook useEffect contains a call to 'setCookiesAccepted'. Without a list of dependencies, this can lead to an infinite chain of updates. To fix this, pass [] as a second argument to the useEffect Hook react-hooks/exhaustive-deps
src/components/CustomTabPanel/CustomTabPanel.jsx
Line 2:15: 'Button' is defined but never used no-unused-vars
Line 2:23: 'Tabs' is defined but never used no-unused-vars
Line 2:29: 'Tab' is defined but never used no-unused-vars
src/components/PostForm/PostForm.jsx
Line 6:8: 'InsertPhotoIcon' is defined but never used no-unused-vars
Line 7:8: 'VideoFileIcon' is defined but never used no-unused-vars
Line 8:8: 'MoodIcon' is defined but never used no-unused-vars
src/data/placeholderImageUrl.js
Line 1:1: Assign literal to a variable before exporting as module default import/no-anonymous-default-export
src/pages/AdminDashboard/AdminDashboard.jsx
Line 9:12: 'users' is assigned a value but never used no-unused-vars
src/pages/Events/CreateEventModal/CreateEventModal.jsx
Line 108:25: Expected '===' and instead saw '==' eqeqeq
src/pages/Profile/Profile.jsx
Line 60:11: 'handleChange' is assigned a value but never used no-unused-vars
webpack compiled with 1 warning
Edit: updated the current build warnings from the previous ones.
gbowne1 commented
Yes this is open but this issue may not still exist.
Let me know if it is, or any other issues with the project you found
Thanks