-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.oxlintrc.jsonc
More file actions
73 lines (68 loc) · 2.12 KB
/
.oxlintrc.jsonc
File metadata and controls
73 lines (68 loc) · 2.12 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
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["import", "node", "oxc", "react", "typescript", "unicorn", "jsx-a11y"],
"options": {
"reportUnusedDisableDirectives": "error",
"typeAware": false,
"typeCheck": false,
},
"ignorePatterns": [
"dist/**",
"data/**",
"design/**",
"prisma/migrations/**",
"public/**",
"node_modules/**",
"**/*.d.ts",
],
"rules": {
"eslint/no-console": "off",
"eslint/no-unused-vars": "off",
"eslint/no-shadow": "warn",
"eslint/no-use-before-define": "off",
"eslint/no-unused-expressions": "warn",
"eslint/complexity": ["warn", { "max": 30 }],
"typescript/consistent-type-imports": ["error", { "disallowTypeAnnotations": false }],
"typescript/no-explicit-any": "warn",
"typescript/no-non-null-assertion": "off",
"typescript/no-misused-promises": "warn",
"typescript/no-unused-vars": "warn",
"typescript/no-unsafe-argument": "off",
"typescript/no-unsafe-assignment": "off",
"typescript/no-unsafe-call": "off",
"typescript/no-unsafe-member-access": "off",
"typescript/no-unsafe-return": "off",
"react/jsx-key": "error",
"react/jsx-no-target-blank": "error",
"react/no-array-index-key": "warn",
"react/display-name": "off",
"react/react-in-jsx-scope": "off",
"react/jsx-uses-react": "off",
"import/no-duplicates": "warn",
"import/no-cycle": "warn",
"import/no-unassigned-import": "off",
"unicorn/catch-error-name": "off",
"unicorn/prefer-ternary": "off",
"unicorn/prefer-module": "off",
"unicorn/no-array-callback-reference": "off",
"unicorn/prevent-abbreviations": "off",
"unicorn/no-useless-undefined": "off",
"jsx-a11y/no-autofocus": "warn",
"jsx-a11y/label-has-associated-control": "off",
},
"overrides": [
{
"files": ["src/client/sw.ts"],
"rules": {
"typescript/consistent-type-imports": "off",
},
},
{
"files": ["scripts/**/*.ts", "*.config.ts", "vite.config.ts"],
"rules": {
"node/no-process-env": "off",
"eslint/no-console": "off",
},
},
],
}