SentinelScan-WSS / frontend /eslint_superadmin.txt
larxius's picture
Deploy SentinelScan WSS to HF Spaces
d543fc1 verified
Raw
History Blame Contribute Delete
51.3 kB
��
D:\Larxius Projects\Latest Project-WSS\Latest Project-WSS\frontend\src\pages\SuperAdminPanel.jsx
1:8 error 'React' is defined but never used no-unused-vars
104:10 error 'trends' is assigned a value but never used no-unused-vars
105:10 error 'auditLogs' is assigned a value but never used no-unused-vars
147:5 error Error: Calling setState synchronously within an effect can trigger cascading renders
Effects are intended to synchronize state between React and external systems such as manually updating the DOM, state management libraries, or other platform APIs. In general, the body of an effect should do one or both of the following:
* Update external systems with the latest state from React.
* Subscribe for updates from some external system, calling setState in a callback function when external state changes.
Calling setState synchronously within an effect body causes cascading renders that can hurt performance, and is not recommended. (https://react.dev/learn/you-might-not-need-an-effect).
145 |
146 | useEffect(() => {
> 147 | fetchStats();
| ^^^^^^^^^^ Avoid calling setState() directly within an effect
148 | }, []);
149 |
150 | // Modal States react-hooks/set-state-in-effect
178:18 error 'err' is defined but never used no-unused-vars
178:23 error Empty block statement no-empty
201:18 error 'err' is defined but never used no-unused-vars
201:23 error Empty block statement no-empty
216:14 error 'err' is defined but never used no-unused-vars
216:19 error Empty block statement no-empty
228:14 error 'err' is defined but never used no-unused-vars
228:19 error Empty block statement no-empty
243:14 error 'err' is defined but never used no-unused-vars
243:19 error Empty block statement no-empty
260:18 error 'err' is defined but never used no-unused-vars
260:23 error Empty block statement no-empty
284:18 error 'err' is defined but never used no-unused-vars
284:23 error Empty block statement no-empty
308:18 error 'err' is defined but never used no-unused-vars
308:23 error Empty block statement no-empty
334:18 error 'err' is defined but never used no-unused-vars
334:23 error Empty block statement no-empty
377:56 error 'isMasterAuthorized' is not defined no-undef
379:8 error 'isMasterAuthorized' is not defined no-undef
647:44 error 'err' is defined but never used no-unused-vars
647:49 error Empty block statement no-empty
665:43 error 'err' is defined but never used no-unused-vars
665:48 error Empty block statement no-empty
��� 28 problems (28 errors, 0 warnings)