-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.oxlintrc.json
More file actions
99 lines (99 loc) · 2.77 KB
/
.oxlintrc.json
File metadata and controls
99 lines (99 loc) · 2.77 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
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["import", "unicorn", "react", "jsx-a11y", "typescript"],
"categories": {
"correctness": "warn",
"suspicious": "warn"
},
"env": {
"builtin": true,
"browser": true,
"es2024": true
},
"globals": {
"JSX": "readonly",
"React": "readonly"
},
"settings": {
"react": {
"version": "19.2"
}
},
"ignorePatterns": ["node_modules/", "dist/", ".next/"],
"rules": {
"no-unused-vars": [
"warn",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
],
"react/jsx-no-target-blank": ["warn", { "allowReferrer": true }],
"react/jsx-no-useless-fragment": ["warn", { "allowExpressions": true }],
"unicorn/filename-case": ["warn", { "case": "kebabCase" }],
"array-callback-return": ["warn", { "allowImplicit": true }],
"prefer-promise-reject-errors": ["warn", { "allowEmptyReject": true }],
"func-names": ["warn", "as-needed"],
"new-cap": ["warn", { "capIsNew": false }],
"react/react-in-jsx-scope": "off",
"react/iframe-missing-sandbox": "off",
"unicorn/consistent-function-scoping": "off",
"unicorn/no-array-sort": "off",
"unicorn/no-instanceof-builtins": "off",
"unicorn/no-array-reverse": "off",
"import/no-unassigned-import": "off",
"typescript/no-unsafe-type-assertion": "off",
"typescript/no-unnecessary-type-arguments": "off"
},
"overrides": [
{
"files": ["**/*.ts?(x)"],
"rules": {
"typescript/ban-ts-comment": [
"warn",
{ "minimumDescriptionLength": 10 }
],
"typescript/consistent-type-imports": [
"warn",
{
"disallowTypeAnnotations": true,
"fixStyle": "inline-type-imports",
"prefer": "type-imports"
}
],
"typescript/explicit-function-return-type": [
"warn",
{ "allowExpressions": true }
],
"typescript/require-array-sort-compare": [
"warn",
{ "ignoreStringArrays": true }
],
"typescript/restrict-plus-operands": [
"warn",
{
"allowAny": false,
"allowBoolean": false,
"allowNullish": false,
"allowNumberAndString": false,
"allowRegExp": false
}
],
"typescript/restrict-template-expressions": [
"warn",
{
"allowAny": false,
"allowBoolean": false,
"allowNever": false,
"allowNullish": false,
"allowNumber": false,
"allowRegExp": false
}
],
"import/default": "off",
"import/namespace": "off"
}
}
]
}