Skip to content

Rule to enforce the inner order of Svelte 5 <script> block #1196

@AntonioVentilii

Description

@AntonioVentilii

Description

It would be useful to have a rule that defines the order of the elements inside the <script> block.

For example, by default, could be imports -> props -> state -> stores -> contexts -> effects (or whatever works).

Idea by @DenysKarmazynDFINITY

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions