From 6a649012bcd780f4b3adfa55647772fce0012fde Mon Sep 17 00:00:00 2001 From: Chris Bystrek Date: Fri, 5 Oct 2018 07:29:55 -0400 Subject: Changed tools/lint.py to lint the entire js and tests directories. (#900) * Changed tools/lint.py to lint the entire js and tests directorys and sub directories, currently it was pointing at tsconfig and would only lint files that were part of js/main.ts or node_modules/typescript/lib/lib.esnext.d.ts and their dependencies * Broke the typescript linting out into separate steps for the main typescript programing and tests. * Fixed linting issues in ts tests. --- js/console_test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'js/console_test.ts') diff --git a/js/console_test.ts b/js/console_test.ts index cbfbdb52a..a87010220 100644 --- a/js/console_test.ts +++ b/js/console_test.ts @@ -67,7 +67,7 @@ test(function consoleTestStringifyCircular() { }; nestedObj.o = circularObj; - + // tslint:disable-next-line:max-line-length const nestedObjExpected = `{ num: 1, bool: true, str: "a", method: [Function: method], asyncMethod: [AsyncFunction: asyncMethod], generatorMethod: [GeneratorFunction: generatorMethod], un: undefined, nu: null, arrowFunc: [Function: arrowFunc], extendedClass: Extended { a: 1, b: 2 }, nFunc: [Function], extendedCstr: [Function: Extended], o: { num: 2, bool: false, str: "b", method: [Function: method], un: undefined, nu: null, nested: [Circular], emptyObj: [object], arr: [object], baseClass: [object] } }`; assertEqual(stringify(1), "1"); @@ -88,11 +88,13 @@ test(function consoleTestStringifyCircular() { assertEqual(stringify(JSON), "{}"); assertEqual( stringify(console), + // tslint:disable-next-line:max-line-length "Console { printFunc: [Function], log: [Function], debug: [Function], info: [Function], dir: [Function], warn: [Function], error: [Function], assert: [Function] }" ); }); test(function consoleTestStringifyWithDepth() { + // tslint:disable-next-line:no-any const nestedObj: any = { a: { b: { c: { d: { e: { f: 42 } } } } } }; assertEqual( stringifyArgs([nestedObj], { depth: 3 }), -- cgit v1.2.3