File tree 3 files changed +12
-12
lines changed
3 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 1
1
import path from 'path' ;
2
2
import { cosmiconfig } from 'cosmiconfig' ;
3
- import TSLoader from '@endemolshinegroup/cosmiconfig-typescript-loader' ;
3
+ import TypeScriptLoader from '@endemolshinegroup/cosmiconfig-typescript-loader' ;
4
4
5
5
export interface LoadConfigResult {
6
6
config : unknown ;
@@ -26,7 +26,7 @@ export async function loadConfig(
26
26
`${ moduleName } .config.js` ,
27
27
] ,
28
28
loaders : {
29
- '.ts' : TSLoader ,
29
+ '.ts' : TypeScriptLoader ,
30
30
} ,
31
31
} ) ;
32
32
Original file line number Diff line number Diff line change 1
- import { PromptConfig , UserPromptConfig } from './prompt' ;
1
+ import { UserPromptConfig } from './prompt' ;
2
2
import {
3
3
AsyncRule ,
4
4
Rule ,
@@ -29,7 +29,7 @@ export interface UserConfig {
29
29
defaultIgnores ?: boolean ;
30
30
plugins ?: ( string | Plugin ) [ ] ;
31
31
helpUrl ?: string ;
32
- prompt ?: PromptConfig ;
32
+ prompt ?: UserPromptConfig ;
33
33
}
34
34
35
35
export interface UserPreset {
@@ -40,7 +40,7 @@ export interface UserPreset {
40
40
ignores ?: ( ( commit : string ) => boolean ) [ ] ;
41
41
defaultIgnores ?: boolean ;
42
42
plugins : PluginRecords ;
43
- prompt ?: PromptConfig ;
43
+ prompt ?: UserPromptConfig ;
44
44
}
45
45
46
46
export type QualifiedRules = Partial < RulesConfig < RuleConfigQuality . Qualified > > ;
Original file line number Diff line number Diff line change @@ -36,13 +36,13 @@ export type PromptConfig = {
36
36
} ;
37
37
38
38
export type PromptMessages = {
39
- skip ? : string ;
40
- max ? : string ;
41
- min ? : string ;
42
- emptyWarning ? : string ;
43
- upperLimitWarning ? : string ;
44
- lowerLimitWarning ? : string ;
45
- [ _key : string ] : string | undefined ;
39
+ skip : string ;
40
+ max : string ;
41
+ min : string ;
42
+ emptyWarning : string ;
43
+ upperLimitWarning : string ;
44
+ lowerLimitWarning : string ;
45
+ [ _key : string ] : string ;
46
46
} ;
47
47
48
48
export type UserPromptConfig = DeepPartial < PromptConfig > ;
You can’t perform that action at this time.
0 commit comments