File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import resolveFrom from 'resolve-from';
7
7
import resolveGlobal from 'resolve-global' ;
8
8
import yargs from 'yargs' ;
9
9
10
- import { CliFlags } from './types' ;
10
+ import { CliFlags , Seed } from './types' ;
11
11
import {
12
12
LintOptions ,
13
13
LintOutcome ,
@@ -292,7 +292,7 @@ function getEditValue(flags: CliFlags) {
292
292
return true ;
293
293
}
294
294
if ( typeof edit === 'boolean' ) {
295
- return false ;
295
+ return edit ;
296
296
}
297
297
// The recommended method to specify -e with husky was `commitlint -e $HUSKY_GIT_PARAMS`
298
298
// This does not work properly with win32 systems, where env variable declarations
@@ -320,12 +320,7 @@ function getEditValue(flags: CliFlags) {
320
320
return edit ;
321
321
}
322
322
323
- function getSeed (
324
- seed : CliFlags
325
- ) : {
326
- extends ?: string [ ] ;
327
- parserPreset ?: string ;
328
- } {
323
+ function getSeed ( seed : CliFlags ) : Seed {
329
324
const n = ( seed . extends || [ ] ) . filter (
330
325
( i ) : i is string => typeof i === 'string'
331
326
) ;
Original file line number Diff line number Diff line change @@ -17,3 +17,8 @@ export interface CliFlags {
17
17
_ : string [ ] ;
18
18
$0 : string ;
19
19
}
20
+
21
+ export interface Seed {
22
+ extends ?: string [ ] ;
23
+ parserPreset ?: string ;
24
+ }
You can’t perform that action at this time.
0 commit comments