-
Notifications
You must be signed in to change notification settings - Fork 532
/
biome.jsonc
240 lines (215 loc) · 6.28 KB
/
biome.jsonc
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
227
228
229
230
231
232
233
234
235
236
237
238
239
240
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"root": ".",
"useIgnoreFile": true,
"defaultBranch": "main"
},
"files": {
"ignoreUnknown": true,
"ignore": [
// Build output
"**/dist/*",
"**/lib/*",
"**/*.done.build.log",
"**/.next", // NextJS
// test collateral
"**/_package.json",
"**/fluid-runner/src/test/localOdspSnapshots/**",
"**/fluid-runner/src/test/telemetryExpectedOutputs/**",
"**/snapshots/*.json",
"**/snapshots/content",
// Generated files
"**/src/**/test/types/*.generated.ts",
"**/src/packageVersion.ts",
// Dependencies
"**/node_modules/*",
// Used by API-Extractor
"**/_api-extractor-temp/*",
"**/api-report/*",
"**/*.api.md",
// Templates
".changeset/templates/",
"*.hbs",
// Test json
"build-tools/packages/build-tools/src/test/data/biome/empty.jsonc",
"experimental/dds/tree/src/test/documents/**",
"packages/dds/map/src/test/mocha/snapshots/**/*.json",
"packages/dds/matrix/src/test/results/**/*.json",
"packages/dds/merge-tree/src/test/literature/*.txt",
"packages/dds/merge-tree/src/test/results/*.json",
"packages/dds/sequence/src/test/snapshots/**/*.json",
"packages/dds/sequence/src/test/results/**/*.json",
"packages/dds/sequence/src/test/fuzz/**/*.json",
"packages/dds/tree/src/test/snapshots/**/*.json",
"packages/dds/tree/src/test/shared-tree/fuzz/failures/**/*.json",
"packages/drivers/odsp-driver/src/test/**/*.json",
"packages/framework/attributor/src/test/attribution/documents/**/*.json",
"packages/test/snapshots/content/**",
"packages/tools/fluid-runner/src/test/localOdspSnapshots/**",
"packages/tools/fluid-runner/src/test/telemetryExpectedOutputs/**",
"tools/api-markdown-documenter/src/test/snapshots/**",
// TODO: why does examples/apps/tree-cli-app/*.json not work?
"**/data/*.json",
// Generated type-tests
"**/*.generated.ts",
// Generated bundle analysis files
"**/bundleAnalysis/**",
// Generated oclif manifest files
"**/oclif.manifest.json",
// es5 build output
"packages/framework/data-object-base/es5",
// Test coverage reports
"**/coverage/*",
"**/nyc/*",
// Git configuration file
".git-blame-ignore-revs",
// Generated by policy-check
"**/assertionShortCodesMap.ts",
// This is a test file
"tools/markdown-magic/test/include.md",
// Autogenerated file
".github/fabricbot.json",
// These are actually templates, not pure YAML files
"**/templates/*.yaml",
// These files are auto-generated according to the comments in the files
"**/charts/**/Chart.yaml",
// Reports generated by dependency-cruiser
"**/.dependency-cruiser-known-violations.json",
// Reports generated by our benchmark tests
".timeTestsOutput/**",
".memoryTestsOutput/**",
".customBenchmarksOutput/**",
// The paths below are not formatted by Biome. We ignore them explicitly so other tools that read this ignore
// list, like fluid-build, know to ignore these files as well.
"**/*.md",
"**/.gitignore",
"**/.npmignore",
"**/LICENSE",
"**/.changeset/**",
// Paths below are outside the client release group and aren't configured for biome.
"common/build/**",
"common/lib/**",
"docs/**",
"server/**",
"tools/api-markdown-documenter/**",
"tools/benchmark/**",
"tools/changelog-generator-wrapper/**",
"tools/getkeys/**",
"tools/markdown-magic/**",
"tools/pipelines/**",
"tools/telemetry-generator/**",
"tools/test-tools/**"
],
"maxSize": 2097152
},
"organizeImports": {
"enabled": false
},
"linter": {
"enabled": false,
"rules": {
"recommended": true
}
},
"formatter": {
"enabled": true,
"ignore": ["**/dist/**", "**/lib/**"],
"formatWithErrors": true,
"indentStyle": "tab",
"lineWidth": 95,
"lineEnding": "lf"
},
"javascript": {
"formatter": {
"arrowParentheses": "always",
"jsxQuoteStyle": "double",
"semicolons": "always",
"trailingCommas": "all",
"quoteProperties": "preserve",
"quoteStyle": "double",
"bracketSpacing": true
}
},
"json": {
"formatter": {
"indentStyle": "tab"
}
},
"overrides": [
{
// @fluid-experimental/tree FORMATTING
// This configuration is used to format the @fluid-experimental/tree package, which uses different settings than
// most projects. This override is needed to ensure that the formatter is applied correctly when run from the root
// of the repo.
//
// This configuration should be kept up-to-date with the settings in `experimental/dds/tree/biome.jsonc`.
"include": ["experimental/dds/tree/**"],
"formatter": {
"lineWidth": 120
},
"javascript": {
"formatter": {
"jsxQuoteStyle": "single",
"trailingCommas": "es5",
"quoteStyle": "single"
}
}
},
{
// JSONC WITHOUT TRAILING COMMAS JSONC is not a standard, and support for trailing commas is not universal. For
// simplicity and safety, we parse most JSONC files in a liberal way -- allowing comments and trailing commas, but
// format them conservatively without trailing commas.
//
// See also: https://github.com/microsoft/vscode/issues/102061
"include": [
"**/*.jsonc",
// Tools reading api-extractor config files do not consistently support trailing commas.
"**/api-extractor*.json",
// Tools reading tsdoc config files do not consistently support trailing commas.
"**/tsdoc*.json"
],
"json": {
"parser": {
"allowComments": true,
"allowTrailingCommas": true
},
"formatter": {
"trailingCommas": "none"
}
}
},
{
// JSONC WITH TRAILING COMMAS
// These JSONC files are known to support trailing commas.
"include": [
// vscode config files all support trailing commas.
"**/.vscode/*.json",
// tsconfig files support trailing commas.
"**/tsconfig*.json"
],
"json": {
"parser": {
"allowComments": true,
"allowTrailingCommas": true
},
"formatter": {
"trailingCommas": "all"
}
}
},
{
// PACKAGE.JSON
// These settings are used to format package.json files in the way npm itself does, with the exception of using
// tabs instead of spaces.
"include": ["**/package.json"],
"json": {
"formatter": {
"lineWidth": 1
}
}
}
]
}