Skip to content

Commit b5bef63

Browse files
committed
refactor: fix format
1 parent f1b7f1d commit b5bef63

3 files changed

Lines changed: 9 additions & 8 deletions

File tree

packages/plugin-knip/src/lib/reporter/utils.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@ import type {
1414
Issue as CpIssue,
1515
} from '@code-pushup/models';
1616
import { formatGitPath, getGitRoot, slugify } from '@code-pushup/utils';
17-
import { ISSUE_RECORDS_TYPES, ISSUE_SET_TYPES, ISSUE_TYPES } from '../constants.js';
1817
import {
19-
ISSUE_TYPE_MESSAGE,
20-
ISSUE_TYPE_TO_AUDIT_SLUG,
21-
} from './constants.js';
18+
ISSUE_RECORDS_TYPES,
19+
ISSUE_SET_TYPES,
20+
ISSUE_TYPES,
21+
} from '../constants.js';
22+
import { ISSUE_TYPE_MESSAGE, ISSUE_TYPE_TO_AUDIT_SLUG } from './constants.js';
2223

2324
const severityMap: Record<KnipSeverity | 'unknown', CondPushupIssueSeverity> = {
2425
unknown: 'info',

packages/plugin-knip/src/lib/runner/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ export function createRunnerConfig(options: RunnerOptions = {}): RunnerConfig {
5050
outputFile = path.join(KNIP_PLUGIN_SLUG, KNIP_REPORT_NAME),
5151
rawOutputFile,
5252
} = options;
53-
53+
5454
// Resolve the reporter path from the installed package
5555
const reporterPath = '@code-pushup/knip-plugin/src/lib/reporter/index.js';
56-
56+
5757
return {
5858
command: 'npx',
5959
args: [

tsconfig.base.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616
"skipDefaultLibCheck": true,
1717
"baseUrl": ".",
1818
"paths": {
19+
"@code-pushup/knip-plugin": ["packages/plugin-knip/src/index.ts"],
1920
"@code-pushup/test-nx-utils": ["testing/test-nx-utils/src/index.ts"],
2021
"@code-pushup/test-setup": ["testing/test-setup/src/index.ts"],
2122
"@code-pushup/test-setup-config": [
2223
"testing/test-setup-config/src/index.ts"
2324
],
24-
"@code-pushup/test-utils": ["testing/test-utils/src/index.ts"],
25-
"@code-pushup/knip-plugin": ["packages/plugin-knip/src/index.ts"]
25+
"@code-pushup/test-utils": ["testing/test-utils/src/index.ts"]
2626
}
2727
},
2828
"exclude": ["node_modules", "tmp"]

0 commit comments

Comments
 (0)