svelteAttrShorthand
Control whether Svelte attribute should be written in short-hand form or not when possible. If this option is unset, attribute won't be changed.
Default value is null
.
Example for null
Input:
<MyComponent {value} />
<MyComponent value={value} />
Output:
<MyComponent {value} />
<MyComponent value={value} />
Example for true
Input:
<MyComponent {value} />
<MyComponent value={value} />
Output:
<MyComponent {value} />
<MyComponent {value} />
Example for false
Input:
<MyComponent {value} />
<MyComponent value={value} />
Output:
<MyComponent value={value} />
<MyComponent value={value} />