-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.json
More file actions
56 lines (53 loc) · 1.47 KB
/
.eslintrc.json
File metadata and controls
56 lines (53 loc) · 1.47 KB
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
46
47
48
49
50
51
52
53
54
55
56
{
"root": true,
"env": {
"browser": true,
"es2020": true,
"node": true
},
"extends": [
"eslint:recommended"
],
"ignorePatterns": ["dist", ".eslintrc.cjs", "src-tauri/**", "node_modules/**", "**/*.d.ts"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"plugins": ["react-refresh", "@typescript-eslint", "react-hooks"],
"rules": {
"react-refresh/only-export-components": [
"warn",
{ "allowConstantExport": true }
],
// General code quality - relaxed for development workflow
"no-console": "off",
"no-debugger": "error",
"no-undef": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/prefer-const": "off",
"@typescript-eslint/no-non-null-assertion": "off",
// React hooks - essential for correctness
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
// 3D Editor specific rules - relaxed for math-heavy code
"no-magic-numbers": "off",
"prefer-const": "off",
"no-var": "error",
"no-case-declarations": "off"
},
"overrides": [
{
"files": ["**/*.test.{ts,tsx}"],
"rules": {
"no-magic-numbers": "off",
"@typescript-eslint/no-explicit-any": "off"
}
}
]
}