Skip to content

Files

Latest commit

 

History

History
38 lines (26 loc) · 906 Bytes

no-spaces-around-equal-signs-in-attribute.md

File metadata and controls

38 lines (26 loc) · 906 Bytes

Pattern: Use of spaces around = in attribute

Issue: -

Description

This rule disallows spaces around equal signs in attributes

<script>
  /* eslint svelte/no-spaces-around-equal-signs-in-attribute: "error" */
</script>

<!-- ✓ GOOD -->
<div class=""/>
<p style="color: red;">hi</p>
<img src="img.png" alt="A photo of a very cute {animal}">

<!-- ✗ BAD -->
<div class = ""/>
<p style ="color: red;">hi</p>
<img src
    =
    "img.png" alt   = "A photo of a very cute {animal}">

🔧 Options

Nothing.

🚀 Version

This rule was introduced in eslint-plugin-svelte v2.3.0

🔍 Implementation