@linthtml/linthtml
v0.10.1
Published
LintHTML CLI
Downloads
32,158
Readme
LintHTML
The HTML5 linter and validator you need.
LintHTML is a fork of htmllint featuring a built-in CLI and multiple bug fixes and improvements. The migration from htmllint to LintHTML is easy, as all htmllint's rules can be used with LintHTML – just follow this simple guide.
Installation and Usage
You can install LintHTML either locally or globally. For most cases we recommend the former, which can be achieved this way with npm:
npm install @linthtml/linthtml --save-dev
You should then init a configuration file:
npx linthtml --init
This will generate a file .linthtmlrc
in the current directory.
After that, you can run LintHTML on any file or directory like this:
npx linthtml 'yourfile.html'
npx linthtml 'src/**/*.html'
If you want to read about alternative installation and usage methods, have a look to the installation and usage page in the documentation.