From 4d2659c583a6a944fac01301b665c55d54a35bf2 Mon Sep 17 00:00:00 2001 From: Matt Mayer Date: Mon, 1 Apr 2024 16:41:36 +0700 Subject: [PATCH] allowNumberAndString for @typescript-eslint/restrict-plus-operands --- .eslintrc.cjs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index a2b8e93668a..9576b3ee74e 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -106,6 +106,13 @@ module.exports = defineConfig({ '@typescript-eslint/unbound-method': 'off', '@typescript-eslint/unified-signatures': 'off', // incompatible with our api docs generation + '@typescript-eslint/restrict-plus-operands': [ + 'error', + { + allowNumberAndString: true + }, + ], + // TODO @ST-DDT 2023-10-10: The following rules currently conflict with our code. // Each rule should be checked whether it should be enabled/configured and the problems fixed, or stay disabled permanently. '@typescript-eslint/no-confusing-void-expression': 'off',