diff --git a/config/tsconfig.json b/config/tsconfig.json index 4a28d40..2943802 100755 --- a/config/tsconfig.json +++ b/config/tsconfig.json @@ -1,9 +1,10 @@ { "compileOnSave": false, "compilerOptions": { - "allowJs": true, + "allowJs": false, "allowSyntheticDefaultImports": true, - "baseUrl": "../", + "declaration": true, + "declarationMap": true, "emitDecoratorMetadata": true, "experimentalDecorators": true, "importHelpers": true, @@ -12,12 +13,15 @@ "es2017", "esnext.asynciterable" ], - "module": "esnext", + "module": "es6", "moduleResolution": "node", + "noImplicitAny": true, "noImplicitReturns": true, - "paths": {}, + "noImplicitThis": true, + "outDir": "../out", "sourceMap": true, "strict": true, + "strictNullChecks": true, "target": "es2017", "types": [ "jsonpath-plus", @@ -30,7 +34,7 @@ ] }, "exclude": [ - "node_modules" + "../node_modules" ], "include": [ "../src/**/*", diff --git a/src/config/args.ts b/src/config/args.ts index 3e08427..45a7c95 100644 --- a/src/config/args.ts +++ b/src/config/args.ts @@ -124,4 +124,4 @@ export function parseArgs(argv: Array) { args, mode, }; -} \ No newline at end of file +} diff --git a/src/parser/YamlParser.ts b/src/parser/YamlParser.ts index c081074..a029fd4 100644 --- a/src/parser/YamlParser.ts +++ b/src/parser/YamlParser.ts @@ -22,4 +22,4 @@ export class YamlParser implements Parser { }); return docs; } -} \ No newline at end of file +} diff --git a/test/TestRule.ts b/test/TestRule.ts index a66e59a..788086b 100644 --- a/test/TestRule.ts +++ b/test/TestRule.ts @@ -162,4 +162,4 @@ describe('rule visitor', () => { mockRule.verify(); expect(ctx.errors.length).to.equal(0); }); -}); \ No newline at end of file +});