Skip to content

Commit

Permalink
chore: bump eslint-plugin-svelte version to fix linting bug
Browse files Browse the repository at this point in the history
In version 2.46.1, which we previously used, eslint couldn't handle svelte each blocks without 'as'.
We use on of these blocks on the project members settings page (src/routes/project/[projectId]/settings/members/+page.svelte):
```svelte
{#each { length: numberOfSkeletons }, i}
    <ProjectMemberListEntrySkeleton />
    {#if i < numberOfSkeletons - 1}
        <Separator />
    {/if}
{/each}
```
This was reported in sveltejs/eslint-plugin-svelte#953 and fixed in version 3.0.0-next.5.
Now eslint works again with our codebase.
  • Loading branch information
Slartibartfass2 committed Feb 8, 2025
1 parent 88468a4 commit d4ad007
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 87 deletions.
134 changes: 48 additions & 86 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"clsx": "^2.1.1",
"eslint": "^9.19.0",
"eslint-config-prettier": "^10.0.1",
"eslint-plugin-svelte": "^2.46.1",
"eslint-plugin-svelte": "^3.0.0-next.5",
"fzf": "^0.5.2",
"globals": "^15.13.0",
"jsdom": "^26.0.0",
Expand Down

0 comments on commit d4ad007

Please sign in to comment.