-
-
Notifications
You must be signed in to change notification settings - Fork 77
Expand file tree
/
Copy path.oxlintrc.json
More file actions
110 lines (110 loc) · 2.73 KB
/
.oxlintrc.json
File metadata and controls
110 lines (110 loc) · 2.73 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
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"categories": {
"correctness": "error",
"nursery": "error",
"pedantic": "error",
"perf": "error",
"restriction": "error",
"style": "error",
"suspicious": "error"
},
"env": {
"es2022": true,
"shared-node-browser": true
},
"plugins": [
"typescript",
"unicorn",
"vitest",
"import",
"eslint",
"oxc",
"promise",
"jsdoc"
],
"rules": {
"@typescript-eslint/no-empty-object-type": [
"error",
{
"allowInterfaces": "with-single-extends"
}
],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unsafe-declaration-merging": "error",
"eslint/arrow-body-style": ["error", "as-needed"],
"eslint/curly": "error",
"eslint/id-length": "off",
"eslint/max-depth": "off",
"eslint/max-lines": "off",
"eslint/max-lines-per-function": "off",
"eslint/no-duplicate-imports": "off",
"func-style": [
"error",
"declaration",
{
"overrides": {
"namedExports": "declaration"
}
}
],
"import/exports-last": "off",
"import/extensions": "off",
"import/group-exports": "off",
"import/max-dependencies": "off",
"import/no-anonymous-default-export": [
"error",
{
"allowCallExpression": true
}
],
"import/no-default-export": "off",
"import/prefer-default-export": "off",
"max-params": "off",
"no-async-await": "off",
"no-console": "off",
"no-continue": "off",
"no-magic-numbers": "off",
"no-nested-ternary": "off",
"no-optional-chaining": "off",
"no-ternary": "off",
"no-undefined": "off",
"oxc/no-barrel-file": "off",
"oxc/no-rest-spread-properties": "off",
"promise/catch-or-return": "off",
"sort-imports": "off",
"sort-keys": "off",
"sort-vars": "off",
"typescript/consistent-indexed-object-style": "error",
"typescript/explicit-function-return-type": "off",
"typescript/no-empty-interface": "off",
"unicorn/error-message": "off",
"unicorn/filename-case": [
"error",
{
"cases": {
"camelCase": true,
"kebabCase": false,
"pascalCase": true,
"snakeCase": false
}
}
],
"unicorn/no-null": "off",
"vitest/consistent-test-it": [
"error",
{
"fn": "test",
"withinDescribe": "test"
}
],
"vitest/max-expects": "off",
"vitest/no-hooks": "off",
"vitest/prefer-lowercase-title": "off",
"vitest/prefer-strict-equal": "off",
"vitest/prefer-to-be-falsy": "off",
"vitest/prefer-to-be-truthy": "off",
"vitest/require-top-level-describe": "off",
"yoda": "error"
}
}