Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no-multiple-emty-lines when iterating a store with each block #196

Open
mckravchyk opened this issue Nov 22, 2022 · 0 comments
Open

no-multiple-emty-lines when iterating a store with each block #196

mckravchyk opened this issue Nov 22, 2022 · 0 comments

Comments

@mckravchyk
Copy link

mckravchyk commented Nov 22, 2022

<!-- Error: More than 1 blank not allowed (one line below) -->
<script lang="ts"> 
  import { readable } from 'svelte/store';
  
  const ids = readable([]);
</script>
  
  <div class="Component">
    {#each $ids as id (id)}
      <div>{id}</div>
    {/each}
  </div>

I have started noticing it after upgrading from ESLint 7 to 8 (which followed the upgrade of this plugin and airbnb-base rules that I use).

So far I have only noticed it to occur when using each block and iterating a store ($ syntax) specifically.

I could not find a workaround except using 0 indentation for the affected files - putting a comment right after <script> will fix this, but it makes the indentation start of the indent rule in the script tag 0, rather than say, 2 spaces which is my preference.

#41 is a similar issue, though here only one script tag is at play.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant