Use markuplint with Svelte. Add Svelte specific elements and attributes to the schema.
$ npm install -D @markuplint/svelte-spec
$ yarn add -D @markuplint/svelte-spec
Add specs
option to your configuration.
{
"specs": {
".svelte$": "@markuplint/svelte-spec"
}
}