id | title |
---|---|
getting-started |
Getting Started |
import Tabs from '@theme/Tabs' import TabItem from '@theme/TabItem'
1. Use npm to install HTMLHint:
<Tabs defaultValue="npm" values={[ { label: 'npm', value: 'npm', }, { label: 'yarn', value: 'yarn', }, ] }>
npm install --save-dev htmlhint
yarn add --dev htmlhint
2. Create a .htmlhintrc
configuration file in the root of your project:
{
"attr-value-not-empty": "off"
}
3. Run HTMLHint on, for example, all the HTML files in your project:
npx htmlhint "**/*.html"