Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
5 changes: 4 additions & 1 deletion azure/packages/azure-local-service/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
*/

module.exports = {
extends: [require.resolve("@fluidframework/eslint-config-fluid/strict"), "prettier"],
extends: [
require.resolve("@fluidframework/eslint-config-fluid/strict"),
"prettier",
],
parserOptions: {
project: ["./tsconfig.eslint.json"],
},
Expand Down
4 changes: 2 additions & 2 deletions azure/packages/azure-local-service/biome.jsonc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"extends": ["../../../biome.jsonc"]
"root": false,
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json"
}
4 changes: 2 additions & 2 deletions azure/packages/azure-local-service/tsconfig.eslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"extends": "../../../common/build/build-common/tsconfig.node16.json",
"include": ["index.js"],
"compilerOptions": {
"noEmit": true,
},
"noEmit": true
}
}
5 changes: 4 additions & 1 deletion azure/packages/azure-service-utils/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
*/

module.exports = {
extends: [require.resolve("@fluidframework/eslint-config-fluid/strict"), "prettier"],
extends: [
require.resolve("@fluidframework/eslint-config-fluid/strict"),
"prettier",
],
parserOptions: {
project: ["./tsconfig.json", "./src/test/tsconfig.json"],
},
Expand Down
4 changes: 2 additions & 2 deletions azure/packages/azure-service-utils/biome.jsonc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"extends": ["../../../biome.jsonc"]
"root": false,
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json"
}
5 changes: 4 additions & 1 deletion azure/packages/azure-service-utils/src/generateToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
*/

import type { IUser } from "@fluidframework/driver-definitions";
import type { ITokenClaims, ScopeType } from "@fluidframework/driver-definitions/internal";
import type {
ITokenClaims,
ScopeType,
} from "@fluidframework/driver-definitions/internal";
import { KJUR as jsrsasign } from "jsrsasign";
import { v4 as uuid } from "uuid";

Expand Down
8 changes: 4 additions & 4 deletions azure/packages/azure-service-utils/src/test/tsconfig.cjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
// This config must be used in a "type": "commonjs" environment. (Use fluid-tsc commonjs.)
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../dist/test",
"outDir": "../../dist/test"
},
"references": [
{
"path": "../../tsconfig.cjs.json",
},
],
"path": "../../tsconfig.cjs.json"
}
]
}
8 changes: 4 additions & 4 deletions azure/packages/azure-service-utils/src/test/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
"compilerOptions": {
"rootDir": "./",
"outDir": "../../lib/test",
"types": [],
"types": []
},
"include": ["./**/*"],
"references": [
{
"path": "../..",
},
],
"path": "../.."
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,22 @@
*/

import type * as old from "@fluidframework/azure-service-utils-previous/internal";
import type { TypeOnly, MinimalType, FullType, requireAssignableTo } from "@fluidframework/build-tools";
import type {
TypeOnly,
MinimalType,
FullType,
requireAssignableTo,
} from "@fluidframework/build-tools";

import type * as current from "../../index.js";

declare type MakeUnusedImportErrorsGoAway<T> = TypeOnly<T> | MinimalType<T> | FullType<T> | typeof old | typeof current | requireAssignableTo<true, true>;
declare type MakeUnusedImportErrorsGoAway<T> =
| TypeOnly<T>
| MinimalType<T>
| FullType<T>
| typeof old
| typeof current
| requireAssignableTo<true, true>;

/*
* Validate forward compatibility by using the old type in place of the current type.
Expand All @@ -22,7 +33,10 @@ declare type MakeUnusedImportErrorsGoAway<T> = TypeOnly<T> | MinimalType<T> | Fu
* typeValidation.broken:
* "Enum_ScopeType": {"forwardCompat": false}
*/
declare type old_as_current_for_Enum_ScopeType = requireAssignableTo<TypeOnly<old.ScopeType>, TypeOnly<current.ScopeType>>
declare type old_as_current_for_Enum_ScopeType = requireAssignableTo<
TypeOnly<old.ScopeType>,
TypeOnly<current.ScopeType>
>;

/*
* Validate backward compatibility by using the current type in place of the old type.
Expand All @@ -31,7 +45,10 @@ declare type old_as_current_for_Enum_ScopeType = requireAssignableTo<TypeOnly<ol
* typeValidation.broken:
* "Enum_ScopeType": {"backCompat": false}
*/
declare type current_as_old_for_Enum_ScopeType = requireAssignableTo<TypeOnly<current.ScopeType>, TypeOnly<old.ScopeType>>
declare type current_as_old_for_Enum_ScopeType = requireAssignableTo<
TypeOnly<current.ScopeType>,
TypeOnly<old.ScopeType>
>;

/*
* Validate backward compatibility by using the current type in place of the old type.
Expand All @@ -40,7 +57,10 @@ declare type current_as_old_for_Enum_ScopeType = requireAssignableTo<TypeOnly<cu
* typeValidation.broken:
* "Function_generateToken": {"backCompat": false}
*/
declare type current_as_old_for_Function_generateToken = requireAssignableTo<TypeOnly<typeof current.generateToken>, TypeOnly<typeof old.generateToken>>
declare type current_as_old_for_Function_generateToken = requireAssignableTo<
TypeOnly<typeof current.generateToken>,
TypeOnly<typeof old.generateToken>
>;

/*
* Validate forward compatibility by using the old type in place of the current type.
Expand All @@ -49,7 +69,10 @@ declare type current_as_old_for_Function_generateToken = requireAssignableTo<Typ
* typeValidation.broken:
* "Interface_IUser": {"forwardCompat": false}
*/
declare type old_as_current_for_Interface_IUser = requireAssignableTo<TypeOnly<old.IUser>, TypeOnly<current.IUser>>
declare type old_as_current_for_Interface_IUser = requireAssignableTo<
TypeOnly<old.IUser>,
TypeOnly<current.IUser>
>;

/*
* Validate backward compatibility by using the current type in place of the old type.
Expand All @@ -58,4 +81,7 @@ declare type old_as_current_for_Interface_IUser = requireAssignableTo<TypeOnly<o
* typeValidation.broken:
* "Interface_IUser": {"backCompat": false}
*/
declare type current_as_old_for_Interface_IUser = requireAssignableTo<TypeOnly<current.IUser>, TypeOnly<old.IUser>>
declare type current_as_old_for_Interface_IUser = requireAssignableTo<
TypeOnly<current.IUser>,
TypeOnly<old.IUser>
>;
4 changes: 2 additions & 2 deletions azure/packages/azure-service-utils/tsconfig.cjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
// This config must be used in a "type": "commonjs" environment. (Use fluid-tsc commonjs.)
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "./dist",
},
"outDir": "./dist"
}
}
4 changes: 2 additions & 2 deletions azure/packages/azure-service-utils/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"exclude": ["src/test/**/*"],
"compilerOptions": {
"rootDir": "./src",
"outDir": "./lib",
},
"outDir": "./lib"
}
}
120 changes: 5 additions & 115 deletions biome.jsonc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"root": true,
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"vcs": {
"enabled": true,
Expand All @@ -9,118 +10,8 @@
},
"files": {
"ignoreUnknown": true,

"ignore": [
// Build output
"**/dist/*",
"**/lib/*",
"examples/**/build/*",
"**/*.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",

// 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/benchmark/**",
"tools/getkeys/**",
"tools/pipelines/**",
"tools/test-tools/**"
],
"maxSize": 2097152
},
"organizeImports": {
"enabled": false
},
"linter": {
"enabled": false,
"rules": {
Expand All @@ -129,7 +20,6 @@
},
"formatter": {
"enabled": true,
"ignore": ["**/dist/**", "**/lib/**"],
"formatWithErrors": true,
"indentStyle": "tab",
"lineWidth": 95,
Expand Down Expand Up @@ -159,7 +49,7 @@
// of the repo.
//
// This configuration should be kept up-to-date with the settings in `experimental/dds/tree/biome.jsonc`.
"include": ["experimental/dds/tree/**"],
"includes": ["experimental/dds/tree/**"],
"formatter": {
"lineWidth": 120
},
Expand All @@ -178,7 +68,7 @@
// format them conservatively without trailing commas.
//
// See also: https://github.com/microsoft/vscode/issues/102061
"include": [
"includes": [
"**/*.jsonc",

// Tools reading api-extractor config files do not consistently support trailing commas.
Expand Down Expand Up @@ -206,7 +96,7 @@
{
// JSONC WITH TRAILING COMMAS
// These JSONC files are known to support trailing commas.
"include": [
"includes": [
// vscode config files all support trailing commas.
"**/.vscode/*.json",

Expand All @@ -227,7 +117,7 @@
// 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"],
"includes": ["**/package.json"],
"json": {
"formatter": {
"lineWidth": 1
Expand Down
8 changes: 1 addition & 7 deletions build-tools/biome.jsonc
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
{
"root": false,
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"extends": ["../biome.jsonc"],
"organizeImports": {
"enabled": true
},
"formatter": {
"enabled": true
},
"files": {
"ignore": ["packages/build-tools/src/test/data/biome/empty.jsonc"]
}
}
2 changes: 1 addition & 1 deletion build-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"temp-directory": "nyc/.nyc_output"
},
"devDependencies": {
"@biomejs/biome": "~1.9.3",
"@biomejs/biome": "~2.2.5",
"@commitlint/cli": "^17.8.1",
"@commitlint/config-conventional": "^17.8.1",
"@commitlint/cz-commitlint": "^17.8.1",
Expand Down
Loading
Loading