breaking: new options, deprecate svelteStrictMode

#379

Closing issues

Pull request

Closed
D
dummdidumm
Jul 14, 2023, 4:39 PM
  • add svelteSelfCloseComponents and svelteSelfCloseElements to specify whether or not empty elements/components should self-close. svelteStrictMode no longer has any effect on this behavior.
    • an alternative to this would to not have these options and instead do whatever the user specified. In other words, if the user says <div></div> it stays as this, and if the user says <div /> that also stays like this. This is what Prettier currently does in both HTML and JSX
  • svelteAllowShorthand now takes precedence over svelteStrictMode, which no longer has any effect on that behavior
  • svelteStrictMode is deprecated as future Svelte versions might coerce numbers coming from mustache tags inside strings into strings

closes #348 closes #284 closes #279 closes #238 related to #377

Info

Closed at Jul 17, 2023, 11:13 AM
Assignees None
Reviewers None
Labels None
Milestone None