2024-03-14 22:07:19 +03:00
|
|
|
{
|
|
|
|
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
|
|
|
|
"vcs": {
|
|
|
|
"enabled": true,
|
|
|
|
"clientKind": "git",
|
|
|
|
"root": ".",
|
2024-06-19 01:28:42 +03:00
|
|
|
"useIgnoreFile": true,
|
|
|
|
"defaultBranch": "main"
|
2024-03-14 22:07:19 +03:00
|
|
|
},
|
|
|
|
"files": {
|
|
|
|
"ignoreUnknown": true,
|
2024-06-19 01:28:42 +03:00
|
|
|
|
2024-03-14 22:07:19 +03:00
|
|
|
"ignore": [
|
2024-06-19 01:28:42 +03:00
|
|
|
// Build output
|
|
|
|
"**/dist/*",
|
|
|
|
"**/lib/*",
|
|
|
|
"**/*.done.build.log",
|
2024-06-18 02:57:07 +03:00
|
|
|
|
|
|
|
// test collateral
|
2024-06-19 01:28:42 +03:00
|
|
|
"**/_package.json",
|
2024-06-18 02:57:07 +03:00
|
|
|
"**/fluid-runner/src/test/localOdspSnapshots/**",
|
|
|
|
"**/fluid-runner/src/test/telemetryExpectedOutputs/**",
|
2024-06-19 01:28:42 +03:00
|
|
|
"**/snapshots/*.json",
|
|
|
|
|
|
|
|
// 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/**",
|
|
|
|
"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/**",
|
|
|
|
|
|
|
|
// 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
|
2024-06-19 22:46:40 +03:00
|
|
|
"**/assertionShortCodesMap.ts",
|
2024-06-19 01:28:42 +03:00
|
|
|
|
|
|
|
// 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",
|
2024-06-18 02:57:07 +03:00
|
|
|
|
|
|
|
// Paths below are outside the client release group and aren't configured for biome.
|
2024-06-19 01:28:42 +03:00
|
|
|
"common/build/**",
|
|
|
|
"common/lib/**",
|
2024-06-18 02:57:07 +03:00
|
|
|
"docs/**",
|
|
|
|
"server/**",
|
2024-06-19 01:28:42 +03:00
|
|
|
"tools/api-markdown-documenter/**",
|
|
|
|
"tools/benchmark/**",
|
|
|
|
"tools/changelog-generator-wrapper/**",
|
|
|
|
"tools/getkeys/**",
|
|
|
|
"tools/markdown-magic/**",
|
|
|
|
"tools/pipelines/**",
|
|
|
|
"tools/telemetry-generator/**",
|
|
|
|
"tools/test-tools/**"
|
2024-03-14 22:07:19 +03:00
|
|
|
],
|
|
|
|
"maxSize": 2097152
|
|
|
|
},
|
|
|
|
"organizeImports": {
|
2024-06-11 21:13:59 +03:00
|
|
|
"enabled": false
|
2024-03-14 22:07:19 +03:00
|
|
|
},
|
|
|
|
"linter": {
|
|
|
|
"enabled": false,
|
|
|
|
"rules": {
|
|
|
|
"recommended": true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"formatter": {
|
2024-06-11 21:13:59 +03:00
|
|
|
"enabled": true,
|
|
|
|
"ignore": ["**/dist/**", "**/lib/**"],
|
2024-03-15 04:26:11 +03:00
|
|
|
"formatWithErrors": true,
|
|
|
|
"indentStyle": "tab",
|
|
|
|
"lineWidth": 95,
|
|
|
|
"lineEnding": "lf"
|
|
|
|
},
|
|
|
|
"javascript": {
|
|
|
|
"formatter": {
|
|
|
|
"arrowParentheses": "always",
|
|
|
|
"jsxQuoteStyle": "double",
|
|
|
|
"semicolons": "always",
|
|
|
|
"trailingComma": "all",
|
|
|
|
"quoteProperties": "preserve",
|
|
|
|
"quoteStyle": "double",
|
|
|
|
"bracketSpacing": true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"json": {
|
|
|
|
"formatter": {
|
|
|
|
"indentStyle": "tab"
|
|
|
|
}
|
2024-03-14 22:07:19 +03:00
|
|
|
},
|
|
|
|
"overrides": [
|
|
|
|
{
|
2024-06-18 02:57:07 +03:00
|
|
|
// @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",
|
|
|
|
"trailingComma": "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
|
2024-06-11 21:13:59 +03:00
|
|
|
"include": [
|
|
|
|
"**/*.jsonc",
|
2024-06-18 02:57:07 +03:00
|
|
|
|
|
|
|
// Tools reading api-extractor config files do not consistently support trailing commas.
|
2024-06-19 01:28:42 +03:00
|
|
|
"**/api-extractor*.json",
|
|
|
|
|
|
|
|
// Tools reading tsdoc config files do not consistently support trailing commas.
|
|
|
|
"**/tsdoc*.json"
|
2024-06-11 21:13:59 +03:00
|
|
|
],
|
2024-06-18 02:57:07 +03:00
|
|
|
"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"
|
|
|
|
],
|
2024-03-14 22:07:19 +03:00
|
|
|
"json": {
|
|
|
|
"parser": {
|
|
|
|
"allowComments": true,
|
|
|
|
"allowTrailingCommas": true
|
|
|
|
},
|
|
|
|
"formatter": {
|
|
|
|
"trailingCommas": "all"
|
|
|
|
}
|
|
|
|
}
|
2024-03-15 04:26:11 +03:00
|
|
|
},
|
|
|
|
{
|
2024-06-18 02:57:07 +03:00
|
|
|
// 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.
|
2024-03-15 04:26:11 +03:00
|
|
|
"include": ["**/package.json"],
|
|
|
|
"json": {
|
|
|
|
"formatter": {
|
2024-06-18 02:57:07 +03:00
|
|
|
"lineWidth": 1
|
2024-03-15 04:26:11 +03:00
|
|
|
}
|
|
|
|
}
|
2024-03-14 22:07:19 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|