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' } }],