npm.io
0.64.0 • Published 2 weeks ago

@html-eslint/parser

Licence
MIT
Version
0.64.0
Deps
4
Size
24 kB
Vulns
0
Weekly
0
Stars
272

@html-eslint/parser

HTML parser for ESLint. Converts HTML into an ESLint-compatible AST using es-html-parser.

Installation

npm install --save-dev @html-eslint/parser

Configuration

// eslint.config.js
import html from "@html-eslint/eslint-plugin";

export default [
  {
    files: ["**/*.html"],
    plugins: { "@html-eslint": html },
    languageOptions: {
      parser: html.parser,
    },
  },
];

Documentation

License

MIT

Keywords