$ npm install @html-eslint/template-parser
@html-eslint/template-parserParser for HTML written inside JavaScript/TypeScript template literals (e.g., Lit).
npm install --save-dev @html-eslint/template-parser
const { parse } = require("@html-eslint/template-parser");
parse(templateLiteralNode, sourceCode, {
Tag(node) {
// visit HTML tag nodes
},
AttributeValue(node) {
// visit attribute value nodes
},
});
MIT
© 2010 - cnpmjs.org x YWFE | Home | YWFE