Skip to content

Remove svelte/html-self-closing in the future #960

Closed
@baseballyama

Description

@baseballyama

https://sveltejs.github.io/eslint-plugin-svelte/rules/html-closing-bracket-spacing/

Currently, Svelte 5 determines whether a tag is self-closing based on whether it is a void element and issues warnings accordingly. This enforces correct HTML syntax. Therefore, I believe there is no longer a need to provide a rule for this in ESLint.
sveltejs/svelte#11114

image

However, this rule is still necessary for certain cases, such as <Component>.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions