Pattern: Duplicate style property
Issue: -
This rule reports duplicate style properties.
<script>
/* eslint svelte/no-dupe-style-properties: "error" */
let red = 'red';
</script>
<!-- ✓ GOOD -->
<div style="background: green; background-color: {red};">...</div>
<div style:background="green" style="background-color: {red}">...</div>
<!-- ✗ BAD -->
<div style="background: green; background: {red};">...</div>
<div style:background="green" style="background: {red}">...</div>
Nothing.
This rule was introduced in eslint-plugin-svelte v0.31.0