Skip to content

Does svelte/valid-prop-names-in-kit-pages still matter? #13955

Closed as not planned
@frederikhors

Description

@frederikhors

Describe the problem

If I have this for a +page.svelte:

<script lang="ts">
    type Props = {
        some?: boolean;
        custom?: () => void;
        propss?: (something: SomeType) => void;
        here?: () => void;
    };

    let {
        some,
        custom,
        propss,
        here,
    }: Props = $props();

    // more code
</script>

I get the error on my some, custom, props, here props.

Why?

Describe the proposed solution

I would like to use all the props I need.

Alternatives considered

No response

Importance

would make my life easier

Additional Information

I opened sveltejs/eslint-plugin-svelte#1263 but I think this is something to discuss here instead. Right?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions