-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy path.oxlintrc.json
More file actions
63 lines (63 loc) · 2.38 KB
/
.oxlintrc.json
File metadata and controls
63 lines (63 loc) · 2.38 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
{
"plugins": ["typescript", "import", "oxc", "unicorn"],
"categories": {
"correctness": "error"
},
"rules": {
"array-callback-return": "error",
"eqeqeq": "error",
"func-style": ["error", "declaration"],
"no-console": "error",
"no-implicit-coercion": "error",
"no-use-before-define": ["error", { "functions": false }],
"no-var": "error",
"no-void": "error",
"no-useless-return": "error",
"no-useless-constructor": "error",
"max-params": ["error", { "max": 3 }],
"no-unused-vars": [
"error",
{
"args": "all",
"argsIgnorePattern": "^_",
"ignoreRestSiblings": true
}
],
"import/first": "error",
"import/no-duplicates": "error",
"import/no-default-export": "error",
"import/no-named-as-default": "error",
"import/no-named-as-default-member": "error",
"typescript/consistent-type-assertions": "error",
"typescript/prefer-optional-chain": "error",
"typescript/prefer-includes": "error",
"typescript/prefer-reduce-type-parameter": "error",
"typescript/only-throw-error": "error",
"typescript/no-misused-promises": "error",
"typescript/no-unnecessary-type-assertion": "error",
"typescript/no-unnecessary-type-constraint": "error",
"typescript/no-unsafe-argument": "error",
"typescript/no-unsafe-assignment": "error",
"typescript/no-unsafe-call": "error",
"typescript/no-unsafe-member-access": "error",
"typescript/no-unsafe-return": "error",
"typescript/no-unsafe-enum-comparison": "error",
"typescript/restrict-plus-operands": "error",
"typescript/require-await": "error",
"typescript/prefer-promise-reject-errors": "error",
"typescript/no-explicit-any": "error",
"typescript/no-duplicate-type-constituents": "off",
"typescript/no-redundant-type-constituents": "off"
},
"overrides": [
{
"files": ["**/*.test.ts", "**/*.test.tsx"],
"rules": {
"max-params": "off",
"typescript/no-unsafe-assignment": "off",
"typescript/unbound-method": "off"
}
}
],
"ignorePatterns": ["dist/**", "node_modules/**", "vitest.config.ts"]
}