diff --git a/.changeset/ten-news-impress.md b/.changeset/ten-news-impress.md new file mode 100644 index 0000000..230c8b7 --- /dev/null +++ b/.changeset/ten-news-impress.md @@ -0,0 +1,5 @@ +--- +"@sveltejs/eslint-config": patch +--- + +fix: only allow template literals when needed to avoid an escape sequence diff --git a/index.js b/index.js index e14c74d..1fe0c70 100644 --- a/index.js +++ b/index.js @@ -25,7 +25,7 @@ export default [ }, rules: { '@stylistic/quote-props': ['error', 'as-needed'], - '@stylistic/quotes': ['error', 'single', { avoidEscape: true }], + '@stylistic/quotes': ['error', 'single', { avoidEscape: true, allowTemplateLiterals: true }], '@typescript-eslint/array-type': ['error', { default: 'array-simple' }], '@typescript-eslint/ban-ts-comment': 'off', '@typescript-eslint/ban-types': 'off',