From f355e4ea9a1163a3db417bf03c2e82f1621515bb Mon Sep 17 00:00:00 2001 From: Nikita Stefaniak Date: Fri, 3 Apr 2020 23:36:24 +0200 Subject: [PATCH] style(eslint-plugin): add workaround for failing lint --- .../tests/rules/method-signature-style.test.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/eslint-plugin/tests/rules/method-signature-style.test.ts b/packages/eslint-plugin/tests/rules/method-signature-style.test.ts index 543d0a5d864..76003e67d84 100644 --- a/packages/eslint-plugin/tests/rules/method-signature-style.test.ts +++ b/packages/eslint-plugin/tests/rules/method-signature-style.test.ts @@ -1,5 +1,5 @@ import rule from '../../src/rules/method-signature-style'; -import { batchedSingleLineTests, RuleTester } from '../RuleTester'; +import { batchedSingleLineTests, noFormat, RuleTester } from '../RuleTester'; const ruleTester = new RuleTester({ parser: '@typescript-eslint/parser', @@ -8,7 +8,7 @@ const ruleTester = new RuleTester({ ruleTester.run('method-signature-style', rule, { valid: [ ...batchedSingleLineTests({ - code: ` + code: noFormat` interface Test { f: (a: string) => number } interface Test { ['f']: (a: boolean) => void } interface Test { f: (a: T) => T } @@ -22,7 +22,7 @@ ruleTester.run('method-signature-style', rule, { }), ...batchedSingleLineTests({ options: ['method'], - code: ` + code: noFormat` interface Test { f(a: string): number } interface Test { ['f'](a: boolean): void } interface Test { f(a: T): T } @@ -37,7 +37,7 @@ ruleTester.run('method-signature-style', rule, { ], invalid: [ ...batchedSingleLineTests({ - code: ` + code: noFormat` interface Test { f(a: string): number } interface Test { ['f'](a: boolean): void } interface Test { f(a: T): T } @@ -59,7 +59,7 @@ ruleTester.run('method-signature-style', rule, { { messageId: 'errorMethod', line: 9 }, { messageId: 'errorMethod', line: 10 }, ], - output: ` + output: noFormat` interface Test { f: (a: string) => number } interface Test { ['f']: (a: boolean) => void } interface Test { f: (a: T) => T } @@ -73,7 +73,7 @@ ruleTester.run('method-signature-style', rule, { }), ...batchedSingleLineTests({ options: ['method'], - code: ` + code: noFormat` interface Test { f: (a: string) => number } interface Test { ['f']: (a: boolean) => void } interface Test { f: (a: T) => T } @@ -95,7 +95,7 @@ ruleTester.run('method-signature-style', rule, { { messageId: 'errorProperty', line: 9 }, { messageId: 'errorProperty', line: 10 }, ], - output: ` + output: noFormat` interface Test { f(a: string): number } interface Test { ['f'](a: boolean): void } interface Test { f(a: T): T }