Skip to content

Latest commit

 

History

History
49 lines (35 loc) · 677 Bytes

getting-started.mdx

File metadata and controls

49 lines (35 loc) · 677 Bytes
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"