You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Svelte 5 no longer needs this option:
- quoting is decided by prettier completely as there's no two ways of doing the same anymore
- more strict closing tag behavior will mean we also have no two way of doing the same here, too, soon
Copy file name to clipboardExpand all lines: README.md
+2-24Lines changed: 2 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -94,29 +94,6 @@ Format: join the keywords `options`, `scripts`, `markup`, `styles` with a `-` in
94
94
95
95
> The `options` order option only exists since version 2. If you use version 1 of `prettier-plugin-svelte`, omit that option (so for example only write `scripts-markup-styles`).
96
96
97
-
### Svelte Strict Mode
98
-
99
-
More strict HTML syntax: Quotes in attributes and no self-closing DOM elements (except void elements).
100
-
101
-
> In version 2 this overruled `svelteAllowShorthand`, which is no longer the case.
102
-
103
-
> In Svelte 5, attributes are never quoted, because this will mean "stringify this attribute value" in a future Svelte version
@@ -233,6 +209,8 @@ Usage in the browser is semi-supported. You can import the plugin from `prettier
233
209
234
210
Upgrade to Svelte 5 before upgrading to `prettier-plugin-svelte@4`, as it doesn't support older Svelte versions.
235
211
212
+
`svelteStrictMode` option has been removed. Attributes are now never quoted, because this will mean "stringify this attribute value" in a future Svelte version.
213
+
236
214
## FAQ
237
215
238
216
### Why is the closing or opening tag (`>` or `<`) hugging the inner tag or text?
0 commit comments