From 958d6eb55103c053be2bad3ccb125b81d43bd1bd Mon Sep 17 00:00:00 2001 From: Todd Bluhm Date: Thu, 16 Apr 2020 19:11:13 -0500 Subject: [PATCH] fix: ignore tagged template strings --- src/index.test.ts | 2 +- src/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.test.ts b/src/index.test.ts index f1a366ec..3a644ba7 100644 --- a/src/index.test.ts +++ b/src/index.test.ts @@ -91,7 +91,7 @@ test('export', (t): void => { } ], '@typescript-eslint/no-array-constructor': 'error', - '@typescript-eslint/no-base-to-string': 'error', + '@typescript-eslint/no-base-to-string': ['error', { ignoreTaggedTemplateExpressions: true }], '@typescript-eslint/no-dupe-class-members': 'error', '@typescript-eslint/no-dynamic-delete': 'error', '@typescript-eslint/no-empty-interface': 'error', diff --git a/src/index.ts b/src/index.ts index ba593a5a..c275a76d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -75,7 +75,7 @@ export = { singleline: { delimiter: 'comma', requireLast: false } } ], - '@typescript-eslint/no-base-to-string': 'error', + '@typescript-eslint/no-base-to-string': ['error', { ignoreTaggedTemplateExpressions: true }], '@typescript-eslint/no-dynamic-delete': 'error', '@typescript-eslint/no-empty-interface': 'error', '@typescript-eslint/no-extra-non-null-assertion': 'error',