Skip to content

Commit 03db1b9

Browse files
committed
fix: refine logic
1 parent 47adbb4 commit 03db1b9

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

packages/models/src/lib/implementation/schemas.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ export const filePathSchema = z
145145
*/
146146
const globRegex = /^!?[^<>"|]+$/;
147147

148-
/** Schema for a glob pattern (supports wildcards like *, **, {}, !, etc.) */
149148
export const globPathSchema = z
150149
.string()
151150
.trim()
@@ -154,7 +153,9 @@ export const globPathSchema = z
154153
message:
155154
'The path must be a valid file path or glob pattern (supports *, **, {}, [], !, ?)',
156155
})
157-
.describe('File path or glob pattern (supports *, **, {}, !, etc.)');
156+
.describe(
157+
'Schema for a glob pattern (supports wildcards like *, **, {}, !, etc.)',
158+
);
158159

159160
/** Schema for a fileNameSchema */
160161
export const fileNameSchema = z

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

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,8 @@ export async function generateAuditOutputs(options: {
8080
audits: Audit[];
8181
targets: ESLintTarget[];
8282
artifacts?: PluginArtifactOptions;
83-
outputDir?: string;
8483
}): Promise<AuditOutputs> {
85-
const {
86-
audits,
87-
targets,
88-
artifacts,
89-
outputDir = DEFAULT_PERSIST_OUTPUT_DIR,
90-
} = options;
84+
const { audits, targets, artifacts } = options;
9185
const config: ESLintPluginRunnerConfig = {
9286
targets,
9387
slugs: audits.map(audit => audit.slug),
@@ -100,7 +94,6 @@ export async function generateAuditOutputs(options: {
10094
: await asyncSequential(
10195
targets.map(target => ({
10296
...target,
103-
outputDir,
10497
})),
10598
lint,
10699
);

0 commit comments

Comments
 (0)