This repository was archived by the owner on Mar 21, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.oxlintrc.json
More file actions
56 lines (52 loc) · 1.86 KB
/
.oxlintrc.json
File metadata and controls
56 lines (52 loc) · 1.86 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
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["typescript", "import", "react", "unicorn"],
"categories": {
"correctness": "error",
"suspicious": "warn"
},
"rules": {
"typescript/no-floating-promises": "error",
"typescript/no-misused-promises": "error",
"react/react-in-jsx-scope": "off",
"import/no-unassigned-import": "off",
"typescript/consistent-type-definitions": ["error", "type"],
"func-style": ["error", "expression"],
"typescript/consistent-type-imports": [
"error",
{ "prefer": "type-imports", "fixStyle": "separate-type-imports" }
],
"import/consistent-type-specifier-style": ["error", "prefer-top-level"],
"typescript/array-type": ["error", { "default": "array" }],
"typescript/consistent-generic-constructors": ["error", "constructor"],
"typescript/consistent-type-assertions": ["error", { "assertionStyle": "as" }],
"typescript/no-explicit-any": "warn",
"typescript/no-non-null-assertion": "warn",
"eqeqeq": ["error", "always"],
"prefer-const": "error",
"no-var": "error",
"curly": "error",
"no-nested-ternary": "error",
"prefer-template": "error",
"no-else-return": "error",
"no-console": "warn",
"arrow-body-style": ["error", "as-needed"],
"react/self-closing-comp": "error",
"react/jsx-boolean-value": ["error", "never"],
"react/jsx-curly-brace-presence": ["error", { "props": "never", "children": "never" }],
"react/jsx-fragments": ["error", "syntax"],
"react/jsx-no-useless-fragment": "error",
"unicorn/prefer-node-protocol": "error",
"unicorn/prefer-string-slice": "error",
"unicorn/no-array-for-each": "warn"
},
"ignorePatterns": [
"packages/typespec/**",
"packages/api-client/generated/**",
"dist/**",
"node_modules/**",
"*.config.*",
".agents/**",
".claude/**"
]
}