You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: web/.eslintrc.cjs
+53Lines changed: 53 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -15,5 +15,58 @@ module.exports = {
15
15
{allowConstantExport: true},
16
16
],
17
17
'@typescript-eslint/no-explicit-any': 'off',
18
+
19
+
// Ban direct useEffect — use useMountEffect, React Query, or derived state instead.
20
+
'no-restricted-imports': [
21
+
'error',
22
+
{
23
+
paths: [
24
+
{
25
+
name: 'react',
26
+
importNames: ['useEffect'],
27
+
message:
28
+
'Direct useEffect is banned. Use useMountEffect() for DOM setup, useQuery/useMutation for data, inline computation for derived state, or event handlers for user actions.',
0 commit comments