@@ -2,8 +2,10 @@ var fsu = require("../utils/fsUtil");
2
2
var simpleValidator = require ( './simpleValidator' ) ;
3
3
var types = simpleValidator . types ;
4
4
var compilerOptionsValidation = {
5
- allowNonTsExtensions : { type : simpleValidator . types . boolean } ,
6
- charset : { type : simpleValidator . types . string } ,
5
+ allowNonTsExtensions : { type : types . boolean } ,
6
+ allowUnreachableCode : { type : types . boolean } ,
7
+ allowUnusedLabels : { type : types . boolean } ,
8
+ charset : { type : types . string } ,
7
9
codepage : { type : types . number } ,
8
10
declaration : { type : types . boolean } ,
9
11
diagnostics : { type : types . boolean } ,
@@ -26,7 +28,9 @@ var compilerOptionsValidation = {
26
28
noEmitHelpers : { type : types . boolean } ,
27
29
noEmitOnError : { type : types . boolean } ,
28
30
noErrorTruncation : { type : types . boolean } ,
31
+ noFallthroughCasesInSwitch : { type : types . boolean } ,
29
32
noImplicitAny : { type : types . boolean } ,
33
+ noImplicitReturns : { type : types . boolean } ,
30
34
noLib : { type : types . boolean } ,
31
35
noLibCheck : { type : types . boolean } ,
32
36
noResolve : { type : types . boolean } ,
@@ -301,8 +305,8 @@ function increaseProjectForReferenceAndImports(files) {
301
305
var preProcessedFileInfo = ts . preProcessFile ( content , true ) , dir = path . dirname ( file ) ;
302
306
var extensions = [ '.ts' , '.d.ts' , '.tsx' ] ;
303
307
function getIfExists ( filePathNoExt ) {
304
- for ( var _i = 0 , extensions_1 = extensions ; _i < extensions_1 . length ; _i ++ ) {
305
- var ext = extensions_1 [ _i ] ;
308
+ for ( var _i = 0 ; _i < extensions . length ; _i ++ ) {
309
+ var ext = extensions [ _i ] ;
306
310
if ( fs . existsSync ( filePathNoExt + ext ) ) {
307
311
return filePathNoExt + ext ;
308
312
}
@@ -374,8 +378,8 @@ function getDefinitionsForNodeModules(projectDir, files) {
374
378
try {
375
379
var node_modules = travelUpTheDirectoryTreeTillYouFind ( projectDir , 'node_modules' , true ) ;
376
380
var moduleDirs = getDirs ( node_modules ) ;
377
- for ( var _i = 0 , moduleDirs_1 = moduleDirs ; _i < moduleDirs_1 . length ; _i ++ ) {
378
- var moduleDir = moduleDirs_1 [ _i ] ;
381
+ for ( var _i = 0 ; _i < moduleDirs . length ; _i ++ ) {
382
+ var moduleDir = moduleDirs [ _i ] ;
379
383
try {
380
384
var package_json = JSON . parse ( fs . readFileSync ( moduleDir + "/package.json" ) . toString ( ) ) ;
381
385
packagejson . push ( moduleDir + "/package.json" ) ;
@@ -500,8 +504,8 @@ exports.getPotentiallyRelativeFile = getPotentiallyRelativeFile;
500
504
function getDirs ( rootDir ) {
501
505
var files = fs . readdirSync ( rootDir ) ;
502
506
var dirs = [ ] ;
503
- for ( var _i = 0 , files_1 = files ; _i < files_1 . length ; _i ++ ) {
504
- var file = files_1 [ _i ] ;
507
+ for ( var _i = 0 ; _i < files . length ; _i ++ ) {
508
+ var file = files [ _i ] ;
505
509
if ( file [ 0 ] != '.' ) {
506
510
var filePath = rootDir + "/" + file ;
507
511
var stat = fs . statSync ( filePath ) ;
0 commit comments