-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.oxlintrc.json
More file actions
115 lines (115 loc) · 3.8 KB
/
Copy path.oxlintrc.json
File metadata and controls
115 lines (115 loc) · 3.8 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
{
"$schema": "https://raw.githubusercontent.com/oxc-project/oxc/main/npm/oxlint/configuration_schema.json",
"categories": {
"correctness": "error",
"perf": "warn",
"style": "warn",
"suspicious": "error"
},
"env": {
"browser": true,
"es2024": true,
"node": true
},
"ignorePatterns": [
".output",
".tanstack",
".vinxi",
"**/*.d.ts",
"dist",
"node_modules",
"src/lib/supabase/types.ts",
"src/routeTree.gen.ts"
],
"overrides": [
{
"files": ["src/ui/**"],
"rules": {
"id-length": "off",
"import/no-namespace": "off",
"no-ternary": "off",
"react/jsx-props-no-spreading": "off"
}
},
{
"files": ["src/components/**"],
"rules": {
"react/jsx-props-no-spreading": "off"
}
}
],
"plugins": [
"import",
"jsx-a11y",
"oxc",
"promise",
"react",
"react-hooks",
"typescript",
"unicorn"
],
"rules": {
"@typescript-eslint/array-type": ["error", { "default": "array" }],
"@typescript-eslint/consistent-type-definitions": ["error", "interface"],
"@typescript-eslint/consistent-type-imports": [
"error",
{ "fixStyle": "inline-type-imports" }
],
"@typescript-eslint/no-empty-interface": ["warn", { "allowSingleExtends": true }],
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-non-null-assertion": "warn",
"@typescript-eslint/no-unused-vars": [
"error",
{ "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }
],
"@typescript-eslint/prefer-as-const": "error",
"default-case": "error",
"default-case-last": "error",
"eqeqeq": "error",
"func-style": ["error", "expression"],
"id-length": ["warn", { "min": 2, "properties": "never" }],
"import/consistent-type-specifier-style": ["error", "prefer-inline"],
"import/exports-last": "off",
"import/first": "warn",
"import/no-cycle": "error",
"import/no-duplicates": "error",
"import/no-named-export": "off",
"import/prefer-default-export": "off",
"no-console": "warn",
"no-debugger": "error",
"no-duplicate-imports": "error",
"no-eval": "error",
"no-implied-eval": "error",
"no-magic-numbers": [
"warn",
{
"ignore": [-1, 0, 1, 2],
"ignoreArrayIndexes": true,
"ignoreDefaultValues": true
}
],
"no-param-reassign": "warn",
"no-throw-literal": "error",
"no-unused-vars": "off",
"no-var": "error",
"prefer-const": "error",
"prefer-template": "warn",
"promise/no-nesting": "warn",
"promise/no-return-in-finally": "error",
"react-hooks/exhaustive-deps": "warn",
"react-hooks/rules-of-hooks": "error",
"react/jsx-key": "error",
"react/jsx-max-depth": ["warn", { "max": 10 }],
"react/jsx-no-target-blank": "error",
"react/jsx-props-no-spreading": ["warn", { "html": "ignore" }],
"react/no-array-index-key": "warn",
"react/no-unescaped-entities": "error",
"react/react-in-jsx-scope": "off",
"react/self-closing-comp": "warn",
"sort-imports": ["error", { "ignoreCase": false, "ignoreDeclarationSort": true }],
"sort-keys": "warn",
"unicorn/filename-case": ["error", { "cases": { "kebabCase": true } }],
"unicorn/prefer-node-protocol": "warn",
"unicorn/text-encoding-identifier-case": "off"
}
}