-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path.oxlintrc.json
51 lines (49 loc) · 1.18 KB
/
.oxlintrc.json
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
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": [
"import",
// defaults
"react",
"unicorn",
"typescript",
"oxc"
],
"categories": {
"correctness": "error",
},
"rules": {
// only worry about console.log
"no-console": ["error", { "allow": ["warn", "error", "info", "table"] }],
"no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
],
"react/button-has-type": "error",
"react/jsx-boolean-value": "error",
"react-hooks/exhaustive-deps": "error",
"react-hooks/rules-of-hooks": "error",
"import/no-default-export": "error",
"consistent-type-imports": "error"
},
"overrides": [
{
// default exports are needed in the route modules and the config files,
// but we want to avoid them anywhere else
"files": [
"app/pages/**/*",
"app/layouts/**/*",
"app/forms/**/*",
"*.config.ts",
"*.config.mjs"
],
"rules": {
"import/no-default-export": "off"
}
}
],
"ignorePatterns": ["dist/", "node_modules/"]
}