From a51da9f3ce865d5adee6fe1d78c555c4770245d5 Mon Sep 17 00:00:00 2001 From: Dozie2001 Date: Sun, 17 Nov 2024 14:16:22 +0100 Subject: [PATCH 1/2] Enable restrict-template-expressions --- eslint.config.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index 06a6b2e32e8e..6ddd4c19fecc 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -16,7 +16,7 @@ export default [ '@typescript-eslint/only-throw-error': 'off', '@typescript-eslint/prefer-promise-reject-errors': 'off', '@typescript-eslint/restrict-plus-operands': 'off', - '@typescript-eslint/restrict-template-expressions': 'off', + '@typescript-eslint/restrict-template-expressions': 'on', '@typescript-eslint/unbound-method': 'off', 'jest/expect-expect': [ 'error', From daf96d33670d3eb8f57879254c1a72941feeade8 Mon Sep 17 00:00:00 2001 From: Dozie2001 Date: Sun, 17 Nov 2024 14:40:13 +0100 Subject: [PATCH 2/2] enable/restrict-template-expressions --- examples/react-app/eslint.config.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/react-app/eslint.config.mjs b/examples/react-app/eslint.config.mjs index 8b09e037e8ea..70429cfe4a53 100644 --- a/examples/react-app/eslint.config.mjs +++ b/examples/react-app/eslint.config.mjs @@ -27,7 +27,7 @@ export default [ '@typescript-eslint/no-misused-promises': 'off', '@typescript-eslint/no-unsafe-argument': 'off', '@typescript-eslint/no-unsafe-assignment': 'off', - '@typescript-eslint/restrict-template-expressions': 'off', + '@typescript-eslint/restrict-template-expressions': 'on', 'react-refresh/only-export-components': [ 'warn', {