From fc31d039ca4874c0b207b0bda8e005fc487bc040 Mon Sep 17 00:00:00 2001 From: Colin Rotherham Date: Thu, 20 Jul 2023 07:44:32 +0100 Subject: [PATCH] Add ESLint rules to auto fix concatenated strings --- .eslintrc.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index c7b1ae8da9..996c772e22 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -33,7 +33,11 @@ module.exports = { alphabetize: { order: 'asc' }, 'newlines-between': 'always' } - ] + ], + + // Automatically use template strings + 'no-useless-concat': 'error', + 'prefer-template': 'error' } }, {