-
Notifications
You must be signed in to change notification settings - Fork 93
Expand file tree
/
Copy path.oxlintrc.json
More file actions
42 lines (42 loc) · 967 Bytes
/
Copy path.oxlintrc.json
File metadata and controls
42 lines (42 loc) · 967 Bytes
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
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["react", "typescript", "unicorn", "oxc", "jest", "import"],
"categories": {
"correctness": "error"
},
"options": {
"typeAware": true
},
"env": {
"browser": true,
"es2024": true,
"node": true
},
"rules": {
"typescript/ban-ts-comment": "warn",
"typescript/no-require-imports": "off",
"typescript/no-floating-promises": "error",
"typescript/no-misused-promises": "error",
"react-hooks/exhaustive-deps": "error",
"react-hooks/rules-of-hooks": "error"
},
"overrides": [
{
"files": ["**/__tests__/**"],
"rules": {
// Jest mocks are plain functions with no `this`, so detached references are safe.
"typescript/unbound-method": "off"
}
}
],
"ignorePatterns": [
"node_modules",
"android",
"ios",
"dist",
".expo",
"coverage",
"web-build",
"artifacts"
]
}