Using Presets
There are some presets. It recommends specifying these because rules need to enable each.
Applying presets
Specify the extends
property of the configuration like below:
{
"extends": ["markuplint:recommended"]
}
You can choose some base presets appropriately for your preference.
{
"extends": ["markuplint:html-standard", "markuplint:a11y"]
}
Base presets
markuplint:a11y
markuplint:html-standard
markuplint:performance
markuplint:rdfa
markuplint:security
See rulesets what each preset include those.
Recommended presets
markuplint:recommended
markuplint:recommended-static-html
markuplint:recommended-react
markuplint:recommended-vue
markuplint:recommended-svelte
These recommended presets include all base presets. And each has specific rulesets except markuplint:recommended
.
Rulesets of base presets
Ruleset | Description | a11y | html-standard | performance | rdfa | security |
---|---|---|---|---|---|---|
Must not duplicate ID | Be able to avoid problems in assistive technologies from the viewpoint of machine readability. | ✅ | ✅ | ❌ | ❌ | ❌ |
Disallow accesskey attr | ✅ | ❌ | ❌ |