Skip to content

Commit

Permalink
fix: update quotes config
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Nov 14, 2024
1 parent 23af2a9 commit 31610b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/configs/svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion src/configs/yaml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
}
: {},
Expand Down

0 comments on commit 31610b2

Please sign in to comment.