From 0f484bb71719629862bc0b15acca5722d37d5822 Mon Sep 17 00:00:00 2001 From: Mikita Pilinka Date: Mon, 29 Jun 2026 17:33:39 +0200 Subject: [PATCH] fix(eslint-config): allowed double quotes to avoid escaping to match prettier Signed-off-by: Mikita Pilinka --- packages/eslint-config/__snapshots__/eslint.test.js.snap | 3 +++ packages/eslint-config/base.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/eslint-config/__snapshots__/eslint.test.js.snap b/packages/eslint-config/__snapshots__/eslint.test.js.snap index 7cdbe2e15..6274087e7 100644 --- a/packages/eslint-config/__snapshots__/eslint.test.js.snap +++ b/packages/eslint-config/__snapshots__/eslint.test.js.snap @@ -535,6 +535,7 @@ exports[`ESLint Config Integrity > library config matches snapshot 1`] = ` "single", { "allowTemplateLiterals": true, + "avoidEscape": true, }, ], "sonarjs/cognitive-complexity": [ @@ -1082,6 +1083,7 @@ exports[`ESLint Config Integrity > react config matches snapshot 1`] = ` "single", { "allowTemplateLiterals": true, + "avoidEscape": true, }, ], "sonarjs/cognitive-complexity": [ @@ -1721,6 +1723,7 @@ exports[`ESLint Config Integrity > storybook config matches snapshot 1`] = ` "single", { "allowTemplateLiterals": true, + "avoidEscape": true, }, ], "sonarjs/cognitive-complexity": [ diff --git a/packages/eslint-config/base.js b/packages/eslint-config/base.js index 5da834705..1a5f156eb 100644 --- a/packages/eslint-config/base.js +++ b/packages/eslint-config/base.js @@ -39,7 +39,7 @@ export const baseConfig = defineConfig( 'no-console': 'off', 'no-prototype-builtins': 'off', 'no-unused-vars': 'off', - quotes: ['error', 'single', { allowTemplateLiterals: true }], + quotes: ['error', 'single', { allowTemplateLiterals: true, avoidEscape: true }], 'sonarjs/cognitive-complexity': ['error', 17], '@typescript-eslint/ban-ts-comment': 'off', '@typescript-eslint/member-ordering': ['error', { default: { order: 'alphabetically-case-insensitive' } }],