Skip to content

Commit e942c98

Browse files
authored
fix: only allow template literals when needed to avoid an escape sequence (#42)
1 parent 559cf48 commit e942c98

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/ten-news-impress.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@sveltejs/eslint-config": patch
3+
---
4+
5+
fix: only allow template literals when needed to avoid an escape sequence

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export default [
3535
},
3636
rules: {
3737
'@stylistic/quote-props': ['error', 'as-needed'],
38-
'@stylistic/quotes': ['error', 'single', { avoidEscape: true }],
38+
'@stylistic/quotes': ['error', 'single', { avoidEscape: true, allowTemplateLiterals: true }],
3939
'@typescript-eslint/array-type': ['error', { default: 'array-simple' }],
4040
'@typescript-eslint/ban-ts-comment': 'off',
4141
'@typescript-eslint/ban-types': 'off',

0 commit comments

Comments
 (0)