From 09b685c73c455e6eb39658112bc4826c6712f16b Mon Sep 17 00:00:00 2001 From: coyotte508 Date: Thu, 15 Dec 2022 11:36:26 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tests/rules/key-spacing.test.ts | 32 ++++++++----------- 1 file changed, 13 insertions(+), 19 deletions(-) diff --git a/packages/eslint-plugin/tests/rules/key-spacing.test.ts b/packages/eslint-plugin/tests/rules/key-spacing.test.ts index 9fbe24d6843d..15ca1114ee70 100644 --- a/packages/eslint-plugin/tests/rules/key-spacing.test.ts +++ b/packages/eslint-plugin/tests/rules/key-spacing.test.ts @@ -53,8 +53,7 @@ ruleTester.run('key-spacing', rule, { options: [{ align: 'value', mode: 'minimum' }], }, { - code: -` + code: ` interface X { a: number; prop: { @@ -63,7 +62,7 @@ interface X { }, abc: string } -`, + `, options: [{ align: 'value' }], }, // align: colon @@ -160,13 +159,13 @@ interface X { }, { code: 'interface X {\n a: number;\n // Some comment\n\n // interrupted in the middle\n abc: string\n};', - output: 'interface X {\n a: number;\n // Some comment\n\n // interrupted in the middle\n abc: string\n};', + output: + 'interface X {\n a: number;\n // Some comment\n\n // interrupted in the middle\n abc: string\n};', options: [{ align: 'value' }], errors: [{ messageId: 'extraValue' }], }, { - code: -` + code: ` interface X { a: number; prop: { @@ -175,9 +174,8 @@ interface X { }, abc: string } -`, - output: -` + `, + output: ` interface X { a: number; prop: { @@ -191,8 +189,7 @@ interface X { errors: [{ messageId: 'missingValue' }], }, { - code: -` + code: ` interface X { a: number; prop: { @@ -201,9 +198,8 @@ interface X { }, abc: string } -`, - output: -` + `, + output: ` interface X { a: number; prop: { @@ -217,8 +213,7 @@ interface X { errors: [{ messageId: 'missingValue' }], }, { - code: -` + code: ` interface X { a: number; prop: { @@ -227,9 +222,8 @@ interface X { }, abc: string } -`, - output: -` + `, + output: ` interface X { a: number; prop: {