-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
45 lines (37 loc) · 1.37 KB
/
.eslintrc.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
"extends": "next/core-web-vitals",
"rules": {
// Allow unused variables when they start with underscore
"@typescript-eslint/no-unused-vars": ["warn", {
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"ignoreRestSiblings": true
}],
// Reduce severity of any type warnings during development
"@typescript-eslint/no-explicit-any": "warn",
// Make React hooks exhaustive-deps a warning instead of error
"react-hooks/exhaustive-deps": "warn",
// Make const vs let a warning instead of error
"prefer-const": "warn",
// Additional development-friendly configurations
"no-console": ["warn", {
"allow": ["warn", "error", "info"]
}],
// Allow empty catch blocks with comments
"no-empty": ["error", {
"allowEmptyCatch": true
}],
// Enforce consistent imports but as warnings
"import/no-unused-modules": "warn",
"import/no-unresolved": "warn",
// TypeScript specific rules set to warn
"@typescript-eslint/no-empty-interface": "warn",
"@typescript-eslint/no-inferrable-types": "warn",
"@typescript-eslint/no-empty-function": "warn",
// React specific rules set to warn during development
"react/prop-types": "off",
"react/react-in-jsx-scope": "off",
"react/display-name": "warn",
"react/no-unescaped-entities": "warn"
}
}