Skip to content

Commit 5b5285b

Browse files
committedJan 17, 2021
feat: implement config validation
1 parent ee0650d commit 5b5285b

File tree

44 files changed

+575
-185
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+575
-185
lines changed
 

‎@commitlint/cli/src/cli.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,15 @@ import resolveGlobal from 'resolve-global';
88
import yargs from 'yargs';
99
import util from 'util';
1010

11-
import {CliFlags, Seed} from './types';
11+
import {CliFlags} from './types';
1212
import {
1313
LintOptions,
1414
LintOutcome,
1515
ParserOptions,
1616
ParserPreset,
1717
QualifiedConfig,
1818
Formatter,
19+
UserConfig,
1920
} from '@commitlint/types';
2021
import {CliError} from './cli-error';
2122

@@ -332,7 +333,7 @@ function getEditValue(flags: CliFlags) {
332333
return edit;
333334
}
334335

335-
function getSeed(flags: CliFlags): Seed {
336+
function getSeed(flags: CliFlags): UserConfig {
336337
const n = (flags.extends || []).filter(
337338
(i): i is string => typeof i === 'string'
338339
);

‎@commitlint/cli/src/types.ts

-5
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,3 @@ export interface CliFlags {
1818
_: string[];
1919
$0: string;
2020
}
21-
22-
export interface Seed {
23-
extends?: string[];
24-
parserPreset?: string;
25-
}

0 commit comments

Comments
 (0)