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 Jan 22, 2025
1 parent ac69f0f commit 94fb056
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 78 deletions.
130 changes: 53 additions & 77 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 @@ -39,7 +39,7 @@
"clsx": "^2.1.1",
"eslint": "^9.17.0",
"eslint-config-prettier": "^10.0.1",
"eslint-plugin-svelte": "^2.46.1",
"eslint-plugin-svelte": "^3.0.0-next.5",
"globals": "^15.13.0",
"jsdom": "^26.0.0",
"license-checker": "^25.0.1",
Expand Down

0 comments on commit 94fb056

Please sign in to comment.