@linthtml/linthtml
TypeScript icon, indicating that this package has built-in type declarations

0.9.6 • Public • Published

LintHTML

npm version license codebeat badge Coverage Status

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.

/@linthtml/linthtml/

    Package Sidebar

    Install

    npm i @linthtml/linthtml

    Weekly Downloads

    5,380

    Version

    0.9.6

    License

    ISC

    Unpacked Size

    548 kB

    Total Files

    406

    Last publish

    Collaborators

    • kamikillerto