Skip to content

Commit d853cb9

Browse files
committed
refactor: fix format
1 parent f720e0f commit d853cb9

17 files changed

Lines changed: 42 additions & 71 deletions

File tree

.vscode/settings.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{
2-
"eslint.validate": [
3-
"json"
4-
],
2+
"eslint.validate": ["json"],
53
"kiroAgent.configureMCP": "Disabled"
64
}

packages/plugin-knip/src/lib/reporter/reporter.unit.test.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
import {
2-
MEMFS_VOLUME,
3-
osAgnosticPath,
4-
} from '@code-pushup/test-utils';
1+
import { MEMFS_VOLUME, osAgnosticPath } from '@code-pushup/test-utils';
52
import { logger } from '@code-pushup/utils';
63
import type { ReporterOptions } from 'knip';
74
import { IssueRecords, IssueSet } from 'knip/dist/types/issues';

testing/test-nx-utils/.eslint/eslint-report.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,4 +124,4 @@
124124
"fixableWarningCount": 0,
125125
"usedDeprecatedRules": []
126126
}
127-
]
127+
]

testing/test-nx-utils/src/lib/utils/nx-plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export async function invokeCreateNodesOnVirtualFiles<
4343
vol.fromJSON(matchingFilesData, MEMFS_VOLUME);
4444

4545
const results = await Promise.all(
46-
Object.keys(matchingFilesData).map(file =>
46+
Object.keys(matchingFilesData).map((file) =>
4747
createNodes[1](file, createNodeOptions, context),
4848
),
4949
);

testing/test-nx-utils/src/lib/utils/tree.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { ensureDirectoryExists } from '@code-pushup/test-utils';
66
export async function materializeTree(tree: Tree, targetFolder: string) {
77
const changes = tree.listChanges();
88
await Promise.all(
9-
changes.map(async change => {
9+
changes.map(async (change) => {
1010
const filePath = path.join(targetFolder, change.path);
1111

1212
if (change.type === 'CREATE' || change.type === 'UPDATE') {

testing/test-setup-config/.eslint/eslint-report.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,4 +142,4 @@
142142
"fixableWarningCount": 0,
143143
"usedDeprecatedRules": []
144144
}
145-
]
145+
]

testing/test-setup-config/src/lib/vitest-config-factory.unit.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ describe('createVitestConfig', () => {
219219
it('should handle all test kinds correctly', () => {
220220
const testKinds: TestKind[] = ['unit', 'int', 'e2e'];
221221

222-
testKinds.forEach(kind => {
222+
testKinds.forEach((kind) => {
223223
const config = createVitestConfig('test-package', kind);
224224

225225
const expectedIncludes = {

testing/test-setup-config/src/lib/vitest-setup-files.unit.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ describe('getSetupFiles', () => {
66
describe('relative paths', () => {
77
it.each<TestKind>(['unit', 'int', 'e2e'])(
88
'should return paths for %s-test relative to config file location',
9-
kind => {
9+
(kind) => {
1010
const setupFiles = getSetupFiles(kind);
11-
expect(setupFiles).toSatisfyAll<string>(path =>
11+
expect(setupFiles).toSatisfyAll<string>((path) =>
1212
/^\.\.\/\.\.\//.test(path),
1313
);
1414
},
@@ -21,7 +21,7 @@ describe('getSetupFiles', () => {
2121

2222
expect(Array.isArray(setupFiles)).toBe(true);
2323
expect(setupFiles).toSatisfyAll<unknown>(
24-
item => typeof item === 'string',
24+
(item) => typeof item === 'string',
2525
);
2626
});
2727
});

testing/test-setup/.eslint/eslint-report.json

Lines changed: 9 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -77,21 +77,15 @@
7777
{
7878
"messageId": "suggestUnknown",
7979
"fix": {
80-
"range": [
81-
492,
82-
495
83-
],
80+
"range": [492, 495],
8481
"text": "unknown"
8582
},
8683
"desc": "Use `unknown` instead, this will force you to explicitly, and safely assert the type is correct."
8784
},
8885
{
8986
"messageId": "suggestNever",
9087
"fix": {
91-
"range": [
92-
492,
93-
495
94-
],
88+
"range": [492, 495],
9589
"text": "never"
9690
},
9791
"desc": "Use `never` instead, this is useful when instantiating generic type parameters that you don't need to know the type of."
@@ -118,21 +112,15 @@
118112
{
119113
"messageId": "suggestUnknown",
120114
"fix": {
121-
"range": [
122-
534,
123-
537
124-
],
115+
"range": [534, 537],
125116
"text": "unknown"
126117
},
127118
"desc": "Use `unknown` instead, this will force you to explicitly, and safely assert the type is correct."
128119
},
129120
{
130121
"messageId": "suggestNever",
131122
"fix": {
132-
"range": [
133-
534,
134-
537
135-
],
123+
"range": [534, 537],
136124
"text": "never"
137125
},
138126
"desc": "Use `never` instead, this is useful when instantiating generic type parameters that you don't need to know the type of."
@@ -159,21 +147,15 @@
159147
{
160148
"messageId": "suggestUnknown",
161149
"fix": {
162-
"range": [
163-
574,
164-
577
165-
],
150+
"range": [574, 577],
166151
"text": "unknown"
167152
},
168153
"desc": "Use `unknown` instead, this will force you to explicitly, and safely assert the type is correct."
169154
},
170155
{
171156
"messageId": "suggestNever",
172157
"fix": {
173-
"range": [
174-
574,
175-
577
176-
],
158+
"range": [574, 577],
177159
"text": "never"
178160
},
179161
"desc": "Use `never` instead, this is useful when instantiating generic type parameters that you don't need to know the type of."
@@ -200,21 +182,15 @@
200182
{
201183
"messageId": "suggestUnknown",
202184
"fix": {
203-
"range": [
204-
614,
205-
617
206-
],
185+
"range": [614, 617],
207186
"text": "unknown"
208187
},
209188
"desc": "Use `unknown` instead, this will force you to explicitly, and safely assert the type is correct."
210189
},
211190
{
212191
"messageId": "suggestNever",
213192
"fix": {
214-
"range": [
215-
614,
216-
617
217-
],
193+
"range": [614, 617],
218194
"text": "never"
219195
},
220196
"desc": "Use `never` instead, this is useful when instantiating generic type parameters that you don't need to know the type of."
@@ -284,4 +260,4 @@
284260
"fixableWarningCount": 0,
285261
"usedDeprecatedRules": []
286262
}
287-
]
263+
]

testing/test-setup/src/lib/extend/markdown-table.matcher.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ function assertMarkdownTableRow(
1515
): SyncExpectationResult {
1616
const rows = actual
1717
.split('\n')
18-
.map(line => line.trim())
19-
.filter(line => line.startsWith('|') && line.endsWith('|'))
20-
.map(line =>
18+
.map((line) => line.trim())
19+
.filter((line) => line.startsWith('|') && line.endsWith('|'))
20+
.map((line) =>
2121
line
2222
.slice(1, -1)
2323
.split(/(?<!\\)\|/)
24-
.map(cell => cell.replace(/\\\|/g, '|').trim()),
24+
.map((cell) => cell.replace(/\\\|/g, '|').trim()),
2525
);
2626

2727
const pass = rows.some(
28-
row =>
28+
(row) =>
2929
row.length === expected.length &&
3030
row.every((cell, i) => cell === expected[i]),
3131
);

0 commit comments

Comments
 (0)