forked from nerds-odd-e/doughnut
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbiome.json
126 lines (126 loc) · 3.18 KB
/
biome.json
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
117
118
119
120
121
122
123
124
125
126
{
"$schema": "https://biomejs.dev/schemas/1.8.1/schema.json",
"organizeImports": { "enabled": true },
"files": {
"ignoreUnknown": true,
"ignore": [
"**/.direnv",
"**/.git",
"**/.github",
"**/.gradle",
"**/.idea",
"**/.vscode",
"**/node_modules",
"biome.json",
"package.json",
"tsconfig.json",
"backend/",
"doughnut_mobile/",
"infra/",
"e2e_test/.eslintrc.cjs",
"e2e_test/fixtures/*.js",
"e2e_test/fixtures/*.json",
"e2e_test/support/index.d.ts",
"frontend/*.cjs",
"frontend/biome.json",
"frontend/package.json",
"frontend/tsconfig.json",
"frontend/auto-imports.d.ts",
"frontend/components.d.ts",
"frontend/vite.config.ts",
"frontend/src/@types/doughnut/index.d.ts",
"frontend/src/generated/backend/DoughnutApi.ts",
"frontend/tests/*.js",
"frontend/tests/shims-vue.d.ts"
]
},
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true,
"defaultBranch": "main"
},
"formatter": {
"indentStyle": "space"
},
"javascript": {
"formatter": {
"semicolons": "asNeeded"
}
},
"linter": {
"enabled": true,
"rules": {
"recommended": false,
"complexity": {
"noBannedTypes": "error",
"noUselessTypeConstraint": "error"
},
"correctness": {
"noInvalidUseBeforeDeclaration": "warn",
"noPrecisionLoss": "error",
"noUnusedImports": "error",
"noUnusedVariables": "off",
"useArrayLiterals": "off"
},
"style": {
"noInferrableTypes": "warn",
"noNamespace": "error",
"useAsConstAssertion": "error",
"useBlockStatements": "off"
},
"suspicious": {
"noExplicitAny": "warn",
"noExtraNonNullAssertion": "error",
"noMisleadingInstantiator": "error",
"noUnsafeDeclarationMerging": "error"
}
},
"ignore": [
"**/tsconfig.json",
"**/.eslintrc.cjs",
"config/ci.ts",
"config/common.ts",
"**/components.d.ts",
"**/node_modules",
"**/.git",
"**/.github",
"**/*.md"
]
},
"overrides": [
{
"include": ["*.ts", "*.tsx", "*.mts", "*.cts"],
"linter": {
"rules": {
"correctness": {
"noConstAssign": "off",
"noGlobalObjectCalls": "off",
"noInvalidConstructorSuper": "off",
"noInvalidNewBuiltin": "off",
"noNewSymbol": "off",
"noSetterReturn": "off",
"noUndeclaredVariables": "off",
"noUnreachable": "off",
"noUnreachableSuper": "off"
},
"style": {
"noArguments": "error",
"noVar": "error",
"useConst": "error"
},
"suspicious": {
"noDuplicateClassMembers": "off",
"noDuplicateObjectKeys": "off",
"noDuplicateParameters": "off",
"noFunctionAssign": "off",
"noImportAssign": "off",
"noRedeclare": "off",
"noUnsafeNegation": "off",
"useGetterReturn": "off"
}
}
}
}
]
}