Skip to main content

Guides

Getting started

Instant using

npx markuplint target.html
info

It applies recommended preset if it doesn't find a configuration file.

The required spec

  • Node.js v18.18.0 or later

Using in your project

Create a configuration file and install dependencies.

npx markuplint --init

Answer questions interactively. By doing this, needed modules are installed includes markuplint.

Add a command to the scripts option on package.json:

package.json
{
"scripts": {
"lint:html": "markuplint \"**/*.html\""
}
}

If you want to change the target path, you can change it for your project.

Execute the script:

npm run lint:html

Using with Visual Studio Code

You can install it from Visual Studio Marketplace. Or search “markuplint” on the VS Code extension.