@html-eslint/cli
v0.64.0
Published
HTML-ESLint CLI
Downloads
1,075
Readme
@html-eslint/cli
CLI tool for linting HTML pages by URL.
Installation
npm install -g @html-eslint/cliConfiguration
Create .htmleslintrc.js in your project root:
module.exports = {
rules: {
"@html-eslint/require-doctype": "error",
"@html-eslint/require-title": "error",
"@html-eslint/require-img-alt": "error",
"@html-eslint/no-multiple-h1": "error",
},
};Usage
html-eslint https://example.comOptions
| Option | Alias | Description |
| ----------------- | ----- | -------------------------------------------------------- |
| --config <path> | -c | Path to configuration file (default: .htmleslintrc.js) |
| --check-style | | Enable style rules (disabled by default) |
License
MIT
