Skip to content

Commit 9cb2e2f

Browse files
committed
refactor: fix lint
1 parent e4b2a4d commit 9cb2e2f

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

tools/zod2md-jsdocs/src/lib/generators/configuration/zod2md-config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { type Tree, generateFiles, logger } from '@nx/devkit';
22
import * as path from 'node:path';
33
import * as ts from 'typescript';
44
import type { Config } from 'zod2md';
5-
import { formatArrayToLinesOfJsString } from './utils.js';
65

76
export type GenerateZod2MdConfigOptions = Config;
87

tools/zod2md-jsdocs/src/lib/generators/configuration/zod2md-config.unit.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { createTreeWithEmptyWorkspace } from '@nx/devkit/testing';
33
import * as path from 'node:path';
44
import stripAnsi from 'strip-ansi';
55
import { afterEach, describe, expect, it } from 'vitest';
6-
import { formatArrayToLinesOfJsString } from './utils.js';
76
import { generateZod2MdConfig } from './zod2md-config.js';
87

98
describe('generateZod2MdConfig options', () => {

tools/zod2md-jsdocs/src/lib/generators/sync-zod2md-setup/sync-zod2md-setup.unit.test.ts

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
import * as devkit from '@nx/devkit';
22
import { updateJson } from '@nx/devkit';
3-
import * as path from 'node:path';
43
import type { NxProjectPackageJsonConfiguration } from 'nx/src/utils/package-json';
54
import { expect } from 'vitest';
65
import { generateWorkspaceAndProject } from '@code-pushup/test-nx-utils';
76
import {
87
GENERATE_DOCS_TARGET_NAME,
98
PATCH_TS_TARGET_NAME,
10-
} from '../../plugin/constants';
9+
} from '../../plugin/constants.js';
1110
import { addZod2MdTransformToTsConfig } from '../configuration/tsconfig.js';
1211
import { generateZod2MdConfig } from '../configuration/zod2md-config.js';
1312
import { syncZod2mdSetupGenerator } from './sync-zod2md-setup.js';
@@ -25,8 +24,8 @@ describe('sync-zod2md-setup generator', () => {
2524
const projectConfig: NxProjectPackageJsonConfiguration = {
2625
root: projectRoot,
2726
targets: {
28-
['build']: {
29-
dependsOn: ['build', GENERATE_DOCS_TARGET_NAME, PATCH_TS_TARGET_NAME],
27+
build: {
28+
dependsOn: ['^build', GENERATE_DOCS_TARGET_NAME, PATCH_TS_TARGET_NAME],
3029
},
3130
[GENERATE_DOCS_TARGET_NAME]: {
3231
executor: 'zod2md-jsdocs:zod2md',
@@ -36,7 +35,6 @@ describe('sync-zod2md-setup generator', () => {
3635
outputs: ['{projectRoot}/docs'],
3736
},
3837
},
39-
files: [],
4038
tags: [],
4139
};
4240

@@ -100,8 +98,12 @@ describe('sync-zod2md-setup generator', () => {
10098
...config,
10199
name: projectName,
102100
targets: {
103-
['build']: {
104-
dependsOn: ['build', GENERATE_DOCS_TARGET_NAME, PATCH_TS_TARGET_NAME],
101+
build: {
102+
dependsOn: [
103+
'^build',
104+
GENERATE_DOCS_TARGET_NAME,
105+
PATCH_TS_TARGET_NAME,
106+
],
105107
},
106108
},
107109
}));
@@ -120,8 +122,8 @@ describe('sync-zod2md-setup generator', () => {
120122
name: projectName,
121123
targets: {
122124
...projectConfig.targets,
123-
['build']: {
124-
dependsOn: ['build'],
125+
build: {
126+
dependsOn: ['^build'],
125127
},
126128
},
127129
}));

0 commit comments

Comments
 (0)