diff --git a/src/configs/svelte.ts b/src/configs/svelte.ts index bb59206e7d..91fd13b1ef 100644 --- a/src/configs/svelte.ts +++ b/src/configs/svelte.ts @@ -97,7 +97,7 @@ export async function svelte( 'style/no-trailing-spaces': 'off', // superseded by svelte/no-trailing-spaces 'svelte/derived-has-same-inputs-outputs': 'error', 'svelte/html-closing-bracket-spacing': 'error', - 'svelte/html-quotes': ['error', { prefer: quotes }], + 'svelte/html-quotes': ['error', { prefer: quotes === 'backtick' ? 'double' : quotes }], 'svelte/indent': ['error', { alignAttributesVertically: true, indent }], 'svelte/mustache-spacing': 'error', 'svelte/no-spaces-around-equal-signs-in-attribute': 'error', diff --git a/src/configs/yaml.ts b/src/configs/yaml.ts index 2ff3202e69..a6cac067cd 100644 --- a/src/configs/yaml.ts +++ b/src/configs/yaml.ts @@ -61,7 +61,7 @@ export async function yaml( 'yaml/indent': ['error', indent === 'tab' ? 2 : indent], 'yaml/key-spacing': 'error', 'yaml/no-tab-indent': 'error', - 'yaml/quotes': ['error', { avoidEscape: false, prefer: quotes }], + 'yaml/quotes': ['error', { avoidEscape: true, prefer: quotes === 'backtick' ? 'single' : quotes }], 'yaml/spaced-comment': 'error', } : {},