Repository navigation
Expand file tree
/
Copy path.oxlintrc.json
More file actions
105 lines (100 loc) · 4.4 KB
/
Copy path.oxlintrc.json
File metadata and controls
105 lines (100 loc) · 4.4 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
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["typescript", "unicorn", "oxc", "import", "node", "promise", "vitest"],
"categories": {
"correctness": "error",
"suspicious": "error"
},
"options": {
"typeAware": true,
"denyWarnings": true,
"reportUnusedDisableDirectives": "error",
"respectEslintDisableDirectives": false
},
"env": {
"node": true,
"es2024": true
},
"ignorePatterns": ["lib/**", "emulator_data/**", "typesense-server-data/**"],
"rules": {
"eqeqeq": ["error", "always", {"null": "ignore"}],
"no-console": "error",
"no-var": "error",
"prefer-const": "error",
"typescript/no-explicit-any": ["error", {"fixToUnknown": false, "ignoreRestArgs": false}],
"typescript/ban-ts-comment": ["error", {"ts-expect-error": true, "ts-ignore": true, "ts-nocheck": true, "ts-check": false, "minimumDescriptionLength": 3}],
"typescript/ban-tslint-comment": "error",
"typescript/no-non-null-assertion": "error",
"typescript/no-non-null-asserted-optional-chain": "error",
"typescript/no-non-null-asserted-nullish-coalescing": "error",
"typescript/no-extra-non-null-assertion": "error",
"typescript/no-confusing-non-null-assertion": "error",
"typescript/consistent-type-assertions": ["error", {"assertionStyle": "never"}],
"typescript/no-unsafe-type-assertion": "error",
"typescript/no-unnecessary-type-assertion": "error",
"typescript/non-nullable-type-assertion-style": "off",
"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/no-unsafe-unary-minus": "error",
"typescript/no-unsafe-function-type": "error",
"typescript/no-unsafe-declaration-merging": "error",
"typescript/await-thenable": "error",
"typescript/no-floating-promises": "error",
"typescript/no-misused-promises": "error",
"typescript/require-await": "error",
"typescript/return-await": ["error", "error-handling-correctness-only"],
"typescript/only-throw-error": "error",
"typescript/prefer-promise-reject-errors": "error",
"typescript/use-unknown-in-catch-callback-variable": "error",
"typescript/no-base-to-string": "error",
"typescript/restrict-plus-operands": "error",
"typescript/restrict-template-expressions": ["error", {"allowNumber": true}],
"typescript/no-unnecessary-condition": "error",
"typescript/no-unnecessary-boolean-literal-compare": "error",
"typescript/no-unnecessary-template-expression": "error",
"typescript/no-unnecessary-type-arguments": "error",
"typescript/no-unnecessary-type-parameters": "error",
"typescript/no-unnecessary-type-constraint": "error",
"typescript/no-redundant-type-constituents": "error",
"typescript/no-duplicate-type-constituents": "error",
"typescript/no-confusing-void-expression": "error",
"typescript/no-meaningless-void-operator": "error",
"typescript/no-deprecated": "error",
"typescript/unbound-method": "error",
"typescript/switch-exhaustiveness-check": "error",
"typescript/no-for-in-array": "error",
"typescript/no-implied-eval": "error",
"typescript/no-array-delete": "error",
"typescript/no-misused-spread": "error",
"typescript/no-mixed-enums": "error",
"typescript/no-dynamic-delete": "error",
"typescript/no-empty-object-type": "error",
"typescript/no-extraneous-class": "error",
"typescript/no-invalid-void-type": "error",
"typescript/no-require-imports": "error",
"typescript/no-var-requires": "error",
"typescript/no-wrapper-object-types": "error",
"typescript/no-useless-empty-export": "error",
"typescript/no-import-type-side-effects": "error",
"typescript/prefer-reduce-type-parameter": "error",
"typescript/prefer-literal-enum-member": "error",
"typescript/related-getter-setter-pairs": "error",
"typescript/unified-signatures": "error",
"typescript/consistent-type-imports": ["error", {"fixStyle": "inline-type-imports"}],
"typescript/consistent-type-exports": "error",
"import/no-cycle": "error",
"import/no-self-import": "error"
},
"overrides": [
{
"files": ["test/**", "scripts/**", "vitest.config.ts"],
"rules": {
"no-console": "off"
}
}
]
}