@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