Skip to content

Getting Started

1. Use npm or yarn to install HTMLHint:

npm install --save-dev htmlhint

2. Create a .htmlhintrc configuration file in the root of your project:

{
"attr-value-not-empty": false
}

3. Run HTMLHint on, for example, all the HTML files in your project:

Terminal window
npx htmlhint "**/*.html"