-
-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy path.oxlintrc.json
More file actions
85 lines (85 loc) · 1.97 KB
/
.oxlintrc.json
File metadata and controls
85 lines (85 loc) · 1.97 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
{
"$schema": "https://raw.githubusercontent.com/oxc-project/oxlint/main/npm/oxlint/configuration_schema.json",
"plugins": [
"react",
"react-hooks",
"typescript",
"jsx-a11y",
"unicorn",
"oxc"
],
"env": {
"browser": true,
"node": true,
"es2024": true
},
"globals": {
"Deno": "readonly"
},
"categories": {
"correctness": "error",
"suspicious": "warn"
},
"rules": {
"no-async-promise-executor": "off",
"no-unneeded-ternary": "error",
"no-useless-constructor": "error",
"no-unassigned-vars": "error",
"preserve-caught-error": "error",
"react/prop-types": "off",
"react/react-in-jsx-scope": "off",
"react-hooks/exhaustive-deps": "error",
"unicorn/consistent-function-scoping": "off",
"unicorn/require-post-message-target-origin": "off",
"unicorn/prefer-add-event-listener": "off",
"unicorn/no-useless-fallback-in-spread": "error",
"unicorn/prefer-string-starts-ends-with": "error",
"oxc/no-async-endpoint-handlers": "off",
"jsx-a11y/prefer-tag-over-role": "error",
"typescript/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_"
}
],
"typescript/no-explicit-any": "off",
"typescript/explicit-module-boundary-types": "off"
},
"settings": {
"react": {
"version": "19.0.0"
},
"jsx-a11y": {
"polymorphicPropName": "as",
"components": {}
}
},
"ignorePatterns": [
"node_modules/",
"dist/",
"build/",
".react-server/",
".react-server*/",
".vercel/",
"packages/react-server/lib/plugins/file-router/react-server-router.d.ts",
"*.mdx",
"*.md",
"*.json",
"*-lock.*"
],
"overrides": [
{
"files": ["**/*.{ts,tsx}"],
"plugins": ["typescript"],
"rules": {
"typescript/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_"
}
],
"typescript/no-explicit-any": "off"
}
}
]
}