Skip to content

Commit a8fe7a9

Browse files
committed
Format
1 parent 9e175c4 commit a8fe7a9

File tree

20 files changed

+58
-87
lines changed

20 files changed

+58
-87
lines changed

.prettierignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
lib
2-
dist
2+
dist
3+
**/snapshots
4+
packages/history/data

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
"editor.defaultFormatter": "esbenp.prettier-vscode"
1717
},
1818
"typescript.tsdk": "node_modules/typescript/lib"
19-
}
19+
}

packages/cli/src/readConfig.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ export async function readConfig(program: Command, alternate = ".attw.json") {
2020
if (invalid)
2121
program.error(
2222
`error: config option 'ignoreRules' argument '${invalid}' is invalid. Allowed choices are ${Object.values(
23-
problemFlags
24-
).join(", ")}.`
23+
problemFlags,
24+
).join(", ")}.`,
2525
);
2626
}
2727

packages/cli/src/render/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export * from './typed.js';
2-
export * from './untyped.js';
1+
export * from "./typed.js";
2+
export * from "./untyped.js";

packages/cli/test/tsconfig.json

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
{
22
"extends": "../../../tsconfig.base.json",
33
"compilerOptions": {
4-
"lib": [
5-
"es2019"
6-
],
4+
"lib": ["es2019"],
75
"module": "nodenext",
86
"outDir": "dist",
9-
"types": [
10-
"node"
11-
]
7+
"types": ["node"]
128
},
139
"references": [
1410
{
1511
"path": ".."
1612
}
1713
]
18-
}
14+
}

packages/cli/tsconfig.json

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,15 @@
33
"compilerOptions": {
44
"module": "nodenext",
55
"rootDir": "src",
6-
"types": [
7-
"ts-expose-internals",
8-
"node"
9-
],
6+
"types": ["ts-expose-internals", "node"],
107
"outDir": "./dist",
118
"declarationDir": "./lib",
12-
"sourceMap": true,
9+
"sourceMap": true
1310
},
14-
"include": [
15-
"src"
16-
],
11+
"include": ["src"],
1712
"references": [
1813
{
1914
"path": "../core"
2015
}
2116
]
22-
}
17+
}

packages/core/scripts/tsconfig.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
"noEmit": true,
66
"target": "esnext",
77
"module": "nodenext",
8-
"types": [
9-
"node"
10-
]
8+
"types": ["node"]
119
}
12-
}
10+
}

packages/core/test/problems/resolvedThroughFallback.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ test("resolvedThroughFallback", () => {
2727
"Exiting conditional exports.",
2828
"Resolving real path for '/node_modules/dep/dist/index.d.ts', result '/node_modules/dep/dist/index.d.ts'.",
2929
"======== Module name 'dep' was successfully resolved to '/node_modules/dep/dist/index.d.ts' with Package ID 'dep/dist/[email protected]'. ========",
30-
])
30+
]),
3131
);
3232

3333
assert.ok(
@@ -54,7 +54,7 @@ test("resolvedThroughFallback", () => {
5454
"======== Resolving module 'dual' from '/main.cts'. ========",
5555
"Resolution for module 'dual' was found in cache from location '/'.",
5656
"======== Module name 'dual' was successfully resolved to '/node_modules/dual/index.d.ts' with Package ID 'dual/[email protected]'. ========",
57-
])
57+
]),
5858
);
5959

6060
assert.ok(
@@ -261,6 +261,6 @@ test("resolvedThroughFallback", () => {
261261
"File '/package.json' does not exist according to earlier cached lookups.",
262262
"File 'package.json' does not exist according to earlier cached lookups.",
263263
"File '/package.json' does not exist according to earlier cached lookups.",
264-
])
264+
]),
265265
);
266266
});

packages/core/test/tsconfig.json

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
{
22
"extends": "../../../tsconfig.base.json",
33
"compilerOptions": {
4-
"lib": [
5-
"es2019"
6-
],
4+
"lib": ["es2019"],
75
"module": "nodenext",
86
"outDir": "dist",
9-
"types": [
10-
"node"
11-
]
7+
"types": ["node"]
128
},
139
"references": [
1410
{
1511
"path": ".."
1612
}
1713
]
18-
}
14+
}

packages/core/tsconfig.json

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,11 @@
66
// include one of those, because if I declare them locally, that will
77
// result in duplicate declaration errors when a consumer with actual
88
// lib types imports this project.
9-
"lib": [
10-
"es2019",
11-
"webworker"
12-
],
9+
"lib": ["es2019", "webworker"],
1310
"module": "nodenext",
1411
"outDir": "dist",
1512
"rootDir": "src",
16-
"types": [
17-
"ts-expose-internals"
18-
]
13+
"types": ["ts-expose-internals"]
1914
},
20-
"include": [
21-
"src"
22-
]
23-
}
15+
"include": ["src"]
16+
}

0 commit comments

Comments
 (0)