Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

biome.json 5.1 KB

You have to be logged in to leave a comment. Sign In
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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
  1. {
  2. "$schema": "https://biomejs.dev/schemas/2.1.1/schema.json",
  3. "vcs": {
  4. "enabled": true,
  5. "clientKind": "git",
  6. "useIgnoreFile": true
  7. },
  8. "files": {
  9. "ignoreUnknown": false,
  10. "includes": [
  11. "**/*.js",
  12. "**/*.jsx",
  13. "**/*.ts",
  14. "**/*.tsx",
  15. "**/*.json",
  16. "**/*.mjs",
  17. "**/*.cjs",
  18. "!drizzle/**/*",
  19. "!src/app/src/polyfills/**/*"
  20. ]
  21. },
  22. "formatter": {
  23. "enabled": true,
  24. "formatWithErrors": false,
  25. "indentStyle": "space",
  26. "indentWidth": 2,
  27. "lineWidth": 100,
  28. "lineEnding": "lf"
  29. },
  30. "assist": {
  31. "actions": {
  32. "source": {
  33. "organizeImports": {
  34. "level": "on",
  35. "options": {
  36. "groups": [
  37. {
  38. "type": false,
  39. "source": ["react", "react-dom", "react/**", "react-dom/**"]
  40. },
  41. ["react", "react-dom", "react/**", "react-dom/**"],
  42. ":BLANK_LINE:",
  43. {
  44. "type": false,
  45. "source": [":NODE:", ":BUN:"]
  46. },
  47. [":NODE:", ":BUN:"],
  48. ":BLANK_LINE:",
  49. {
  50. "type": false,
  51. "source": ["**"]
  52. },
  53. [
  54. "**",
  55. "!./**",
  56. "!../**",
  57. "!src/**",
  58. "!test/**",
  59. "!examples/**",
  60. "!react",
  61. "!react-dom",
  62. "!react/**",
  63. "!react-dom/**"
  64. ],
  65. ":BLANK_LINE:",
  66. {
  67. "type": false,
  68. "source": ["src/**", "test/**", "examples/**"]
  69. },
  70. ["src/**", "test/**", "examples/**"],
  71. ":BLANK_LINE:",
  72. {
  73. "type": false,
  74. "source": ["./**", "../**"]
  75. },
  76. ["./**", "../**"]
  77. ]
  78. }
  79. }
  80. }
  81. }
  82. },
  83. "linter": {
  84. "enabled": true,
  85. "rules": {
  86. "recommended": false,
  87. "complexity": {
  88. "noUselessConstructor": "error",
  89. "noUselessRename": "error",
  90. "noUselessTernary": "error",
  91. "noUselessFragments": "error",
  92. "useOptionalChain": "off"
  93. },
  94. "correctness": {
  95. "noUnusedVariables": "error",
  96. "noUnusedImports": "error",
  97. "useExhaustiveDependencies": "off",
  98. "noUnusedFunctionParameters": "off",
  99. "useJsxKeyInIterable": "error"
  100. },
  101. "style": {
  102. "noNegationElse": "error",
  103. "useConst": "error",
  104. "useBlockStatements": "error",
  105. "useShorthandAssign": "off",
  106. "useShorthandFunctionType": "off",
  107. "useTemplate": "off",
  108. "useNumberNamespace": "off",
  109. "useSingleVarDeclarator": "off",
  110. "useImportType": "off",
  111. "useNodejsImportProtocol": "off",
  112. "noNonNullAssertion": "off"
  113. },
  114. "suspicious": {
  115. "noExplicitAny": "off",
  116. "noArrayIndexKey": "off",
  117. "noCommentText": "off",
  118. "noConfusingVoidType": "error",
  119. "noRedundantUseStrict": "error"
  120. },
  121. "performance": {
  122. "noDelete": "off"
  123. },
  124. "a11y": {
  125. "recommended": false,
  126. "useButtonType": "off"
  127. }
  128. }
  129. },
  130. "javascript": {
  131. "formatter": {
  132. "enabled": true,
  133. "quoteStyle": "single",
  134. "jsxQuoteStyle": "double",
  135. "trailingCommas": "all",
  136. "semicolons": "always",
  137. "arrowParentheses": "always",
  138. "bracketSpacing": true,
  139. "bracketSameLine": false,
  140. "quoteProperties": "asNeeded",
  141. "attributePosition": "auto"
  142. },
  143. "parser": {
  144. "unsafeParameterDecoratorsEnabled": true
  145. },
  146. "globals": [
  147. "process",
  148. "Buffer",
  149. "__dirname",
  150. "__filename",
  151. "console",
  152. "global",
  153. "require",
  154. "module",
  155. "exports"
  156. ]
  157. },
  158. "css": {
  159. "formatter": {
  160. "enabled": false
  161. }
  162. },
  163. "overrides": [
  164. {
  165. "includes": [
  166. "examples/adaline-gateway/**/prompt.json",
  167. "examples/multiple-turn-conversation/prompt.json",
  168. "examples/openai-chat-history/prompt.json"
  169. ],
  170. "linter": {
  171. "enabled": false
  172. },
  173. "formatter": {
  174. "enabled": false
  175. }
  176. },
  177. {
  178. "includes": ["examples/custom-provider/vercelAiSdkExample.js"],
  179. "linter": {
  180. "enabled": false
  181. },
  182. "formatter": {
  183. "enabled": false
  184. }
  185. },
  186. {
  187. "includes": [".jest/**/*.js"],
  188. "linter": {
  189. "enabled": false
  190. },
  191. "formatter": {
  192. "enabled": false
  193. }
  194. },
  195. {
  196. "includes": ["*.mdc"],
  197. "formatter": {
  198. "enabled": false
  199. }
  200. },
  201. {
  202. "includes": ["*.j2"],
  203. "formatter": {
  204. "enabled": false
  205. }
  206. },
  207. {
  208. "includes": ["test/**/*", "**/*.test.ts", "**/*.test.tsx", "**/*.spec.ts", "**/*.spec.tsx"],
  209. "linter": {
  210. "rules": {
  211. "correctness": {
  212. "noUnusedVariables": "error"
  213. }
  214. }
  215. }
  216. },
  217. {
  218. "includes": ["examples/**/*", "site/**/*"],
  219. "linter": {
  220. "rules": {
  221. "recommended": false
  222. }
  223. }
  224. }
  225. ]
  226. }
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...