-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.oxlintrc.json
More file actions
96 lines (96 loc) · 3.94 KB
/
Copy path.oxlintrc.json
File metadata and controls
96 lines (96 loc) · 3.94 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
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["eslint", "typescript", "unicorn", "oxc", "import", "node", "promise"],
"rules": {
"eslint/eqeqeq": "warn",
"eslint/no-self-compare": "warn",
"eslint/no-template-curly-in-string": "warn",
"eslint/prefer-const": "warn",
"eslint/no-var": "warn",
"eslint/prefer-template": "warn",
"eslint/object-shorthand": "warn",
"eslint/prefer-rest-params": "warn",
"eslint/prefer-spread": "warn",
"eslint/prefer-destructuring": "warn",
"eslint/prefer-exponentiation-operator": "warn",
"eslint/prefer-object-spread": "warn",
"eslint/prefer-object-has-own": "warn",
"eslint/prefer-numeric-literals": "warn",
"eslint/prefer-promise-reject-errors": "warn",
"eslint/arrow-body-style": "warn",
"eslint/no-useless-constructor": "warn",
"eslint/no-useless-computed-key": "warn",
"eslint/array-callback-return": "warn",
"eslint/no-fallthrough": "warn",
"eslint/no-promise-executor-return": "warn",
"eslint/no-else-return": "warn",
"eslint/curly": "warn",
"eslint/default-case-last": "warn",
"eslint/default-param-last": "warn",
"eslint/no-lonely-if": "warn",
"eslint/symbol-description": "warn",
"eslint/sort-imports": "off",
"eslint/no-eval": "warn",
"eslint/no-new-func": "warn",
"eslint/radix": "warn",
"typescript/no-explicit-any": "warn",
"typescript/consistent-type-imports": "warn",
"typescript/no-non-null-assertion": "warn",
"typescript/prefer-optional-chain": "warn",
"typescript/no-unnecessary-condition": "warn",
"typescript/no-deprecated": "warn",
"typescript/return-await": "warn",
"typescript/array-type": "warn",
"typescript/consistent-type-definitions": "warn",
"typescript/consistent-generic-constructors": "warn",
"typescript/prefer-for-of": "warn",
"typescript/prefer-find": "warn",
"typescript/prefer-string-starts-ends-with": "warn",
"typescript/prefer-includes": "warn",
"typescript/prefer-nullish-coalescing": "warn",
"typescript/no-var-requires": "warn",
"typescript/await-thenable": "error",
"typescript/no-floating-promises": "error",
"typescript/no-for-in-array": "error",
"typescript/no-misused-promises": "error",
"typescript/no-unnecessary-type-assertion": "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/require-await": "warn",
"typescript/restrict-plus-operands": "error",
"typescript/switch-exhaustiveness-check": "warn",
"import/no-cycle": "warn",
"import/no-duplicates": "warn",
"promise/no-return-in-finally": "warn",
"promise/catch-or-return": "warn",
"unicorn/prefer-includes": "warn",
"unicorn/prefer-array-flat-map": "warn",
"unicorn/prefer-array-flat": "warn",
"unicorn/prefer-array-some": "warn",
"unicorn/prefer-array-find": "warn",
"unicorn/prefer-at": "warn",
"unicorn/prefer-string-slice": "warn",
"unicorn/prefer-string-replace-all": "warn",
"unicorn/prefer-string-trim-start-end": "warn",
"unicorn/prefer-number-properties": "warn",
"unicorn/prefer-modern-math-apis": "warn",
"unicorn/prefer-node-protocol": "warn",
"unicorn/prefer-structured-clone": "warn",
"unicorn/prefer-set-has": "warn",
"unicorn/prefer-spread": "warn",
"unicorn/prefer-code-point": "warn",
"unicorn/prefer-date-now": "warn",
"unicorn/prefer-event-target": "warn",
"unicorn/prefer-global-this": "warn",
"unicorn/no-instanceof-array": "warn",
"unicorn/throw-new-error": "warn",
"unicorn/error-message": "warn",
"unicorn/no-negation-in-equality-check": "warn",
"unicorn/switch-case-braces": "warn",
"unicorn/catch-error-name": "warn"
},
"ignorePatterns": ["**/node_modules", "**/dist", "**/tests", "**/tests-*"]
}