-
-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy path.oxlintrc.json
More file actions
75 lines (75 loc) · 2.16 KB
/
.oxlintrc.json
File metadata and controls
75 lines (75 loc) · 2.16 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
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["import", "oxc", "typescript", "vitest"],
"jsPlugins": ["eslint-plugin-cypress"],
"extends": ["recommended", "recommended-module"],
"env": {
"es2025": true,
"browser": true,
"shared-node-browser": true
},
"ignorePatterns": [
"**/*.{js,mjs,d.ts}",
"**/dist/**",
"coverage/",
"test/",
"**/environment.*.ts",
"**/public_api.ts",
"!**/cypress/e2e/*.cy.ts"
],
"overrides": [
{
"files": ["**/*.spec.ts"],
"plugins": ["vitest"],
"rules": {
"vitest/expect-expect": "error",
"vitest/no-disabled-tests": "warn",
"vitest/no-focused-tests": "error"
}
},
{
"files": ["**/*.cy.ts"],
"rules": {
"eslint/no-unused-expressions": "off",
"oxc/erasing-op": "off",
"cypress/no-debug": "error",
"import/extensions": "off",
"vitest/*": "off"
}
},
{
"files": ["**/*.ts"],
"rules": {
"typescript/consistent-type-imports": "off"
}
}
],
"rules": {
"typescript/ban-ts-comment": "off",
"typescript/consistent-type-definitions": "error",
"typescript/consistent-type-exports": "error",
"typescript/consistent-type-imports": "error",
"typescript/member-ordering": "error",
"typescript/no-empty-function": "off",
"typescript/no-empty-object-type": ["error", { "allowInterfaces": "with-single-extends" }],
"typescript/no-explicit-any": "off",
"typescript/no-inferrable-types": "error",
"typescript/no-unsafe-function-type": "off",
"typescript/no-non-null-assertion": "off",
"typescript/no-unused-expressions": "off",
"typescript/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"destructuredArrayIgnorePattern": "^_",
"caughtErrors": "none"
}
],
"import/extensions": ["error", "always", { "ignorePackages": true }],
"import/no-self-import": "error",
"import/no-useless-path-segments": ["error", { "noUselessIndex": true }],
"no-async-promise-executor": "off",
"oxc/erasing-op": "off",
"object-shorthand": "error"
}
}