Skip to content

fix: disallow props based on SvelteKit route component type#1503

Open
teemingc wants to merge 5 commits intosveltejs:mainfrom
teemingc:allowed-sveltekit-props
Open

fix: disallow props based on SvelteKit route component type#1503
teemingc wants to merge 5 commits intosveltejs:mainfrom
teemingc:allowed-sveltekit-props

Conversation

@teemingc
Copy link
Copy Markdown
Member

@teemingc teemingc commented Mar 31, 2026

This PR:

  • removes the unused errors prop. This doesn't exist anymore
  • discriminates valid props based on file type (+error.svelte accepts the error prop but other file types don't. Similarly, +layout.svelte accepts children but +page.svelte doesn't)

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Mar 31, 2026

🦋 Changeset detected

Latest commit: 6d25288

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
eslint-plugin-svelte Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 31, 2026

Try the Instant Preview in Online Playground

ESLint Online Playground

Install the Instant Preview to Your Local

npm i https://pkg.pr.new/eslint-plugin-svelte@6d25288

Published Instant Preview Packages:

View Commit

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

Successfully merging this pull request may close these issues.

1 participant