summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-10-05 10:20:10 -0400
committerRyan Dahl <ry@tinyclouds.org>2018-10-05 14:27:47 -0400
commitab952e33405309b723f219c5c74243f0eeb7dba7 (patch)
tree27d515235c949535514cab10906ed03c5b25a50e
parent941e27d8c1c2748e62972510f8059838fdc84dad (diff)
Format
-rw-r--r--js/console_test.ts4
-rwxr-xr-xtools/lint.py5
2 files changed, 6 insertions, 3 deletions
diff --git a/js/console_test.ts b/js/console_test.ts
index a87010220..045d79e47 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
+ // 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");
@@ -94,7 +94,7 @@ test(function consoleTestStringifyCircular() {
});
test(function consoleTestStringifyWithDepth() {
- // tslint:disable-next-line:no-any
+ // tslint:disable-next-line:no-any
const nestedObj: any = { a: { b: { c: { d: { e: { f: 42 } } } } } };
assertEqual(
stringifyArgs([nestedObj], { depth: 3 }),
diff --git a/tools/lint.py b/tools/lint.py
index 2f38da2e8..95ce2eb33 100755
--- a/tools/lint.py
+++ b/tools/lint.py
@@ -19,4 +19,7 @@ run([
])
run(["node", tslint, "-p", ".", "--exclude", "**/gen/**/*.ts"])
-run(["node", tslint, "./js/**/*_test.ts", "./tests/**/*.ts", "--exclude", "**/gen/**/*.ts"])
+run([
+ "node", tslint, "./js/**/*_test.ts", "./tests/**/*.ts", "--exclude",
+ "**/gen/**/*.ts"
+])