Skip to content

Commit 4ceac7f

Browse files
committed
fix lint
1 parent f6b8f59 commit 4ceac7f

File tree

5 files changed

+4
-54
lines changed

5 files changed

+4
-54
lines changed

packages/plugin-typescript/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
"@code-pushup/models": "0.57.0",
2727
"typescript": "5.5.4",
2828
"zod": "^3.23.8",
29-
"@code-pushup/utils": "0.57.0"
29+
"@code-pushup/utils": "0.57.0",
30+
"@push-based/nx-verdaccio": "0.0.0-alpha.26"
3031
},
3132
"scripts": {
3233
"postinstall": "node ./postinstall/index.js"

packages/plugin-typescript/src/lib/constants.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// eslint-disable-next-line unicorn/import-style
12
import { join } from 'node:path';
23
import type { Audit, Group } from '@code-pushup/models';
34
import { camelCaseToKebabCase, kebabCaseToSentence } from '@code-pushup/utils';

packages/plugin-typescript/src/lib/runner/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { access } from 'node:fs/promises';
2+
// eslint-disable-next-line unicorn/import-style
23
import { dirname, join } from 'node:path';
34
import {
45
type CompilerOptions,
@@ -10,7 +11,6 @@ import {
1011
parseJsonConfigFileContent,
1112
sys,
1213
} from 'typescript';
13-
// eslint-disable-next-line unicorn/import-style
1414
import type { Issue } from '@code-pushup/models';
1515
import {
1616
executeProcess,

packages/plugin-typescript/src/lib/utils.integration.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { describe, expect, it } from 'vitest';
2-
import config544 from './default-ts-configs/5.4.4.js';
32
import type { TypescriptPluginOptions } from './types.js';
43
import { normalizeCompilerOptions } from './utils.js';
54
import * as utilsModule from './utils.js';

packages/plugin-typescript/src/lib/utils.unit.test.ts

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -29,58 +29,7 @@ describe('filterAuditsBySlug', () => {
2929
},
3030
);
3131
});
32-
/*
33-
describe('filterGroupsByAuditSlug', () => {
34-
const mockGroups: Group[] = [
35-
{
36-
slug: 'group-1',
37-
title: 'Group 1',
38-
refs: [
39-
{ slug: 'audit-1', weight: 1 },
40-
{ slug: 'audit-2', weight: 1 },
41-
],
42-
},
43-
{
44-
slug: 'group-2',
45-
title: 'Group 2',
46-
refs: [{ slug: 'audit-3', weight: 1 }],
47-
},
48-
{
49-
slug: 'group-3',
50-
title: 'Group 3',
51-
refs: [
52-
{ slug: 'audit-4', weight: 1 },
53-
{ slug: 'audit-5', weight: 1 },
54-
],
55-
},
56-
];
57-
58-
it.each(mockGroups)(
59-
'should return true for group %# when no slugs provided',
60-
group => {
61-
const filter = filterGr();
62-
expect(filter(group)).toBe(true);
63-
},
64-
);
6532

66-
it.each(mockGroups)(
67-
'should return true for group %# when empty slugs array provided',
68-
group => {
69-
const filter = filterGroupsByAuditSlug([]);
70-
expect(filter(group)).toBe(true);
71-
},
72-
);
73-
74-
it.each([
75-
[mockGroups[0], true],
76-
[mockGroups[1], true],
77-
[mockGroups[2], false],
78-
])('should filter group %# by audit slugs', (group, expected) => {
79-
const filter = filterGroupsByAuditSlug(['audit-1', 'audit-3']);
80-
expect(filter(group!)).toBe(expected);
81-
});
82-
});
83-
*/
8433
describe('handleCompilerOptionStrict', () => {
8534
it('should return original options when strict is false', () => {
8635
const options: CompilerOptions = {

0 commit comments

Comments
 (0)