From c85b1c06a9804ad41fbccf8fe5a5689f28eb049e Mon Sep 17 00:00:00 2001 From: Axetroy Date: Wed, 19 Jun 2019 12:22:01 +0800 Subject: lint: add max line length rules (denoland/deno_std#507) Original: https://github.com/denoland/deno_std/commit/b04fda30c8949b6347094b898bfa427c0b9a6162 --- testing/format_test.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'testing/format_test.ts') diff --git a/testing/format_test.ts b/testing/format_test.ts index 0601a5db2..39884d484 100644 --- a/testing/format_test.ts +++ b/testing/format_test.ts @@ -10,6 +10,7 @@ import { test } from "./mod.ts"; import { assertEquals } from "../testing/asserts.ts"; import { format } from "./format.ts"; +// eslint-disable-next-line max-len // eslint-disable-next-line @typescript-eslint/no-unused-vars,@typescript-eslint/no-explicit-any function returnArguments(...args: any[]): IArguments { return arguments; @@ -385,7 +386,8 @@ test({ val.prop = "value1"; assertEquals( format(val), - 'Object {\n "prop": "value1",\n Symbol(symbol1): "value2",\n Symbol(symbol2): "value3",\n}' + 'Object {\n "prop": "value1",\n Symbol(symbol1): "value2",\n ' + + 'Symbol(symbol2): "value3",\n}' ); } }); @@ -607,7 +609,8 @@ test({ const val = { prop: { prop: { prop: "value" } } }; assertEquals( format(val), - 'Object {\n "prop": Object {\n "prop": Object {\n "prop": "value",\n },\n },\n}' + 'Object {\n "prop": Object {\n "prop": Object {\n "prop": ' + + '"value",\n },\n },\n}' ); } }); -- cgit v1.2.3