From 17b876637009b2ad47769cae774a1cb8f5d52356 Mon Sep 17 00:00:00 2001 From: Lukas Weiss Date: Tue, 18 Jun 2024 08:06:26 +0200 Subject: [PATCH] allow numbers in string literals --- ts.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ts.js b/ts.js index 9094157..32c816b 100644 --- a/ts.js +++ b/ts.js @@ -44,6 +44,16 @@ module.exports = { ], '@typescript-eslint/member-delimiter-style': 'off', '@typescript-eslint/explicit-function-return-type': 'off', + '@typescript-eslint/restrict-template-expressions': [ + 'error', + { + 'allowNumber': true, + 'allowNullish': false, + 'allowBoolean': false, + 'allowRegExp': false, + 'allowNever': false, + } + ], 'import/order': [ 'error', {