ONSdigital / design-system

ONS Design System
https://service-manual.ons.gov.uk/design-system
MIT License
31 stars 20 forks source link

Investigate the use of markuplint #3041

Closed rmccar closed 8 months ago

rmccar commented 8 months ago

We need a nunjucks/html linter to keep our code correctly formatted, we have already investigated djlint (https://github.com/ONSdigital/design-system/issues/2760) which doesn't seem to be an option for us at the moment but markuplint seems to be another option.

This card is to investigate the use of markuplint in the DS to see if it meets our needs, it looks like there is a nunjucks plugin that would need to be installed alongside it to get it to work.

markuplint.dev

alessioventuriniAND commented 8 months ago

After investigating this tool I can confirm that the nunjucks parser made available to this linter is not working for our repo and unfortunately there isn't any detailed documentation on how to configure this parser.