Skip to content

Commit a16a2bf

Browse files
committed
chore: change print width from 120 to 100
1 parent bb8b4f2 commit a16a2bf

40 files changed

Lines changed: 739 additions & 393 deletions

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ indent_size = 2
88
end_of_line = lf
99
insert_final_newline = true
1010
trim_trailing_whitespace = true
11-
max_line_length = 120
11+
max_line_length = 100
1212

1313
[*.md]
1414
trim_trailing_whitespace = false

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@
3030
"@svitejs/changesets-changelog-github-compact": "^1.2.0",
3131
"@tailwindcss/language-server": "^0.14.29",
3232
"@types/node": "^22.19.1",
33-
"@vitest/coverage-v8": "^4.0.8",
33+
"@vitest/coverage-v8": "^4.0.10",
3434
"eslint": "^9.39.1",
3535
"lefthook": "^2.0.4",
3636
"prettier": "^3.6.2",
3737
"prettier-plugin-tailwindcss": "^0.7.1",
3838
"turbo": "^2.6.1",
3939
"typescript": "^5.9.3",
40-
"vitest": "^4.0.8"
40+
"vitest": "^4.0.10"
4141
},
4242
"packageManager": "pnpm@10.22.0",
4343
"engines": {

packages/app-db-mysql/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"drizzle-orm": "^0.44.7"
5050
},
5151
"devDependencies": {
52-
"tsdown": "^0.16.4",
52+
"tsdown": "^0.16.5",
5353
"typescript": "^5.9.3"
5454
},
5555
"peerDependencies": {

packages/app-db-mysql/src/index.ts

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,21 @@ export type MySQLDatabaseConfig<S extends Record<string, unknown> = Record<strin
2929
>
3030
>;
3131

32-
export type MySQLDatabase<S extends Record<string, unknown>> = MySql2Database<S> & { $client: Pool };
32+
export type MySQLDatabase<S extends Record<string, unknown>> = MySql2Database<S> & {
33+
$client: Pool;
34+
};
3335

34-
class MySQLDatabaseService<S extends Record<string, unknown> = Record<string, never>> extends DatabaseService<
35-
MySQLDatabase<S>,
36-
S,
37-
MySQLDatabaseConfig<S>
38-
> {
36+
class MySQLDatabaseService<
37+
S extends Record<string, unknown> = Record<string, never>,
38+
> extends DatabaseService<MySQLDatabase<S>, S, MySQLDatabaseConfig<S>> {
3939
constructor(config: MySQLDatabaseConfig<S>, emitter: Emitter) {
4040
super(config, emitter);
4141
}
4242

4343
override connect(): void {
44-
const connections = this.config.connections ?? [{ config: this.config.connection, name: undefined }];
44+
const connections = this.config.connections ?? [
45+
{ config: this.config.connection, name: undefined },
46+
];
4547

4648
for (const connection of connections) {
4749
let pool = mysql.createPool(connection.config);
@@ -73,9 +75,9 @@ class MySQLDatabaseService<S extends Record<string, unknown> = Record<string, ne
7375

7476
export abstract class Repository extends BaseRepository<MySql2Database> {}
7577

76-
export function createMySQLDatabaseExtension<S extends Record<string, unknown> = Record<string, never>>(
77-
config: MySQLDatabaseConfig<S>,
78-
): ExtensionCreator {
78+
export function createMySQLDatabaseExtension<
79+
S extends Record<string, unknown> = Record<string, never>,
80+
>(config: MySQLDatabaseConfig<S>): ExtensionCreator {
7981
return (context) => {
8082
return {
8183
name: "resolid-mysql-db-module",

packages/app-db/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"drizzle-orm": "^0.44.7"
4545
},
4646
"devDependencies": {
47-
"tsdown": "^0.16.4",
47+
"tsdown": "^0.16.5",
4848
"typescript": "^5.9.3"
4949
},
5050
"peerDependencies": {

packages/app-log-file/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"@resolid/app-log": "workspace:^"
4545
},
4646
"devDependencies": {
47-
"tsdown": "^0.16.4",
47+
"tsdown": "^0.16.5",
4848
"typescript": "^5.9.3"
4949
},
5050
"peerDependencies": {

packages/app-log/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"@resolid/core": "workspace:^"
4545
},
4646
"devDependencies": {
47-
"tsdown": "^0.16.4",
47+
"tsdown": "^0.16.5",
4848
"typescript": "^5.9.3"
4949
},
5050
"engines": {

packages/app-log/src/index.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,20 @@ export type LogTarget = {
9898
};
9999

100100
/* istanbul ignore next -- @preserve */
101-
export function createLogTarget<T>(target: { ref: Token<T>; sinks: (service: T) => Record<string, Sink> }): LogTarget {
101+
export function createLogTarget<T>(target: {
102+
ref: Token<T>;
103+
sinks: (service: T) => Record<string, Sink>;
104+
}): LogTarget {
102105
return {
103106
ref: target.ref as Token<unknown>,
104107
sinks: target.sinks as (service: unknown) => Record<string, Sink>,
105108
};
106109
}
107110

108-
export function createLogExtension(targets: readonly LogTarget[] = [], config: LogConfig = {}): ExtensionCreator {
111+
export function createLogExtension(
112+
targets: readonly LogTarget[] = [],
113+
config: LogConfig = {},
114+
): ExtensionCreator {
109115
return (context) => {
110116
return {
111117
name: "resolid-log-module",

packages/cache-file/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"typecheck": "tsc --noEmit"
4141
},
4242
"devDependencies": {
43-
"tsdown": "^0.16.4",
43+
"tsdown": "^0.16.5",
4444
"typescript": "^5.9.3"
4545
},
4646
"peerDependencies": {

packages/cache-file/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export class FileCache implements CacheStore {
3030
}
3131

3232
private async _lockedRun<T>(key: string, fn: () => Promise<T>): Promise<T> {
33+
// noinspection ES6MissingAwait
3334
const prev = this._locks.get(key) ?? Promise.resolve();
3435

3536
let release!: () => void;

0 commit comments

Comments
 (0)