Repository navigation
Expand file tree
/
Copy pathbiome.json
More file actions
150 lines (150 loc) · 3.22 KB
/
Copy pathbiome.json
File metadata and controls
150 lines (150 loc) · 3.22 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
{
"$schema": "https://biomejs.dev/schemas/2.5.6/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"root": ".",
"useIgnoreFile": true
},
"files": {
"includes": [
"**/*.{js,jsx,ts,tsx,json,jsonc}",
"!**/android",
"!**/ios",
"!**/vendor",
"!**/.history",
"!**/.bundle-check",
"!**/.claude",
"!**/app.json"
]
},
"formatter": {
"enabled": true
},
"linter": {
"enabled": true,
"domains": {
"react": "recommended",
"test": "recommended"
},
"rules": {
"preset": "recommended"
}
},
"assist": {
"enabled": true,
"actions": {
"source": {
"organizeImports": "on"
}
}
},
"javascript": {
"globals": ["__DEV__"]
},
"overrides": [
{
"includes": ["apps/web/**"],
"linter": {
"rules": {
"a11y": {
"noStaticElementInteractions": "off",
"noSvgWithoutTitle": "off",
"useButtonType": "off",
"useKeyWithClickEvents": "off",
"useSemanticElements": "off",
"useValidAnchor": "off"
},
"complexity": {
"noStaticOnlyClass": "off",
"noUselessFragments": "off",
"useDateNow": "off",
"useLiteralKeys": "off"
},
"correctness": {
"noUnusedFunctionParameters": "off",
"noUnusedImports": "off",
"noUnusedPrivateClassMembers": "off",
"noUnusedVariables": "off",
"useExhaustiveDependencies": "off",
"useJsxKeyInIterable": "off"
},
"performance": {
"noImgElement": "off"
},
"security": {
"noDangerouslySetInnerHtml": "off"
},
"style": {
"noNonNullAssertion": "off",
"useNodejsImportProtocol": "off",
"useTemplate": "off"
},
"suspicious": {
"noArrayIndexKey": "off",
"noDoubleEquals": "off",
"noExplicitAny": "off",
"noFocusedTests": "off",
"noShadowRestrictedNames": "off"
}
}
},
"formatter": {
"indentStyle": "space",
"indentWidth": 2,
"lineWidth": 100
},
"javascript": {
"formatter": {
"quoteStyle": "single",
"semicolons": "asNeeded"
}
}
},
{
"includes": ["apps/web/server/**", "apps/web/middleware.ts"],
"linter": {
"rules": {
"style": {
"noRestrictedImports": {
"level": "error",
"options": {
"patterns": [
{
"group": ["src/**", "**/src/**"],
"message": "server는 src를 import할 수 없습니다. 서버가 소유하는 타입과 상수는 server/domain에, HTTP 계약은 server/http/schemas에 두세요."
}
]
}
}
}
}
}
},
{
"includes": ["apps/web/src/**"],
"linter": {
"rules": {
"style": {
"noRestrictedImports": {
"level": "error",
"options": {
"patterns": [
{
"group": [
"server/provider",
"server/{service,provider,infra}/**",
"**/server/provider",
"**/server/{service,provider,infra}/**"
],
"message": "src는 server/service, server/provider, server/infra를 직접 import할 수 없습니다. 서버 호출은 pages/api를 거치고, 타입은 server/domain과 server/http/schemas에서 import type으로 가져오세요."
}
]
}
}
}
}
}
}
]
}