@@ -14,6 +14,7 @@ interface RootOptions {
14
14
verify : boolean ;
15
15
baseDir : string [ ] ;
16
16
stdin : boolean ;
17
+ tsconfig : boolean ;
17
18
tslint : boolean ;
18
19
editorconfig : boolean ;
19
20
tsfmt : boolean ;
@@ -31,6 +32,7 @@ let root = commandpost
31
32
. option ( "--verify" , "checking file format" )
32
33
. option ( "--baseDir <path>" , "config file lookup from <path>" )
33
34
. option ( "--stdin" , "get formatting content from stdin" )
35
+ . option ( "--no-tsconfig" , "don't read a tsconfig.json" )
34
36
. option ( "--no-tslint" , "don't read a tslint.json" )
35
37
. option ( "--no-editorconfig" , "don't read a .editorconfig" )
36
38
. option ( "--no-tsfmt" , "don't read a tsfmt.json" )
@@ -40,6 +42,7 @@ let root = commandpost
40
42
let verify = ! ! opts . verify ;
41
43
let baseDir = opts . baseDir ? opts . baseDir [ 0 ] : null ;
42
44
let stdin = ! ! opts . stdin ;
45
+ let tsconfig = ! ! opts . tsconfig ;
43
46
let tslint = ! ! opts . tslint ;
44
47
let editorconfig = ! ! opts . editorconfig ;
45
48
let tsfmt = ! ! opts . tsfmt ;
@@ -68,7 +71,8 @@ let root = commandpost
68
71
console . log ( "verify: " + ( verify ? "ON" : "OFF" ) ) ;
69
72
console . log ( "baseDir: " + ( baseDir ? baseDir : process . cwd ( ) ) ) ;
70
73
console . log ( "stdin: " + ( stdin ? "ON" : "OFF" ) ) ;
71
- console . log ( "tsconfig: " + ( useTsconfig ? "ON" : "OFF" ) ) ;
74
+ console . log ( "files from tsconfig: " + ( useTsconfig ? "ON" : "OFF" ) ) ;
75
+ console . log ( "tsconfig: " + ( tsconfig ? "ON" : "OFF" ) ) ;
72
76
console . log ( "tslint: " + ( tslint ? "ON" : "OFF" ) ) ;
73
77
console . log ( "editorconfig: " + ( editorconfig ? "ON" : "OFF" ) ) ;
74
78
console . log ( "tsfmt: " + ( tsfmt ? "ON" : "OFF" ) ) ;
@@ -84,6 +88,7 @@ let root = commandpost
84
88
replace : replace ,
85
89
verify : verify ,
86
90
baseDir : baseDir ,
91
+ tsconfig : tsconfig ,
87
92
tslint : tslint ,
88
93
editorconfig : editorconfig ,
89
94
tsfmt : tsfmt ,
@@ -102,6 +107,7 @@ let root = commandpost
102
107
replace : replace ,
103
108
verify : verify ,
104
109
baseDir : baseDir ,
110
+ tsconfig : tsconfig ,
105
111
tslint : tslint ,
106
112
editorconfig : editorconfig ,
107
113
tsfmt : tsfmt ,
0 commit comments