$ npm install @html-eslint/parser
@html-eslint/parserHTML parser for ESLint. Converts HTML into an ESLint-compatible AST using es-html-parser.
npm install --save-dev @html-eslint/parser
// eslint.config.js
import html from "@html-eslint/eslint-plugin";
export default [
{
files: ["**/*.html"],
plugins: { "@html-eslint": html },
languageOptions: {
parser: html.parser,
},
},
];
MIT
© 2010 - cnpmjs.org x YWFE | Home | YWFE