-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.oxlintrc.json
More file actions
116 lines (116 loc) · 3.79 KB
/
.oxlintrc.json
File metadata and controls
116 lines (116 loc) · 3.79 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["import", "promise", "typescript", "unicorn"],
"ignorePatterns": ["**/build", "**/node_modules"],
"rules": {
"curly": "error",
"eqeqeq": [
"error",
"always",
{
"null": "ignore"
}
],
"func-style": ["error", "declaration"],
"no-unused-expressions": [
"error",
{
"allowShortCircuit": true,
"enforceForJSX": true
}
],
"no-unused-vars": [
"error",
{
"vars": "all",
"args": "none",
"ignoreRestSiblings": true,
"caughtErrors": "all",
"caughtErrorsIgnorePattern": "^_"
}
],
"no-useless-computed-key": "error",
"no-useless-concat": "error",
"no-useless-constructor": "error",
"no-useless-return": "error",
"no-void": [
"error",
{
"allowAsStatement": true
}
],
"prefer-promise-reject-errors": "error",
"prefer-rest-params": "error",
"prefer-spread": "error",
"import/consistent-type-specifier-style": ["error", "prefer-inline"],
"import/default": "error",
"import/namespace": "error",
"import/no-cycle": ["error", { "maxDepth": 3 }],
"import/no-duplicates": "error",
"import/no-named-as-default": "error",
"import/no-named-as-default-member": "error",
"import/no-self-import": "error",
"promise/always-return": "error",
"promise/no-callback-in-promise": "error",
"typescript/await-thenable": "error",
"typescript/ban-ts-comment": [
"error",
{
"minimumDescriptionLength": 3,
"ts-check": false,
"ts-expect-error": "allow-with-description",
"ts-ignore": true,
"ts-nocheck": true
}
],
"typescript/consistent-type-imports": [
"error",
{
"fixStyle": "inline-type-imports"
}
],
"typescript/no-confusing-non-null-assertion": "error",
"typescript/no-extra-non-null-assertion": "error",
"typescript/no-misused-promises": [
"error",
{
"checksVoidReturn": false
}
],
"typescript/no-restricted-types": "error",
"typescript/no-unnecessary-boolean-literal-compare": "error",
"typescript/no-unnecessary-type-arguments": "error",
"typescript/no-unnecessary-type-assertion": "error",
"typescript/no-unnecessary-type-constraint": "error",
"typescript/prefer-includes": "error",
"typescript/prefer-nullish-coalescing": "error",
"typescript/prefer-readonly": "error",
"typescript/return-await": ["error", "error-handling-correctness-only"],
"typescript/unbound-method": "off",
"unicorn/consistent-date-clone": "error",
"unicorn/consistent-empty-array-spread": "error",
"unicorn/consistent-existence-index-check": "error",
"unicorn/error-message": "error",
"unicorn/no-anonymous-default-export": "error",
"unicorn/no-immediate-mutation": "error",
"unicorn/no-length-as-slice-end": "error",
"unicorn/no-object-as-default-parameter": "error",
"unicorn/no-unnecessary-array-splice-count": "error",
"unicorn/no-useless-collection-argument": "error",
"unicorn/numeric-separators-style": "error",
"unicorn/prefer-array-find": "error",
"unicorn/prefer-array-flat": "error",
"unicorn/prefer-array-flat-map": "error",
"unicorn/prefer-array-some": "error",
"unicorn/prefer-date-now": "error",
"unicorn/prefer-includes": "error",
"unicorn/prefer-keyboard-event-key": "error",
"unicorn/prefer-math-min-max": "error",
"unicorn/prefer-native-coercion-functions": "error",
"unicorn/prefer-node-protocol": "error",
"unicorn/prefer-number-properties": "error",
"unicorn/prefer-regexp-test": "error",
"unicorn/prefer-string-slice": "error",
"unicorn/require-number-to-fixed-digits-argument": "error"
}
}