Usage with AngularJS
npm install html-validate-angular
html-validate-angular is needed to transform .html
and .js
files using AngularJS.
Configure with:
{
"elements": ["html5"],
"transform": {
"^.*\\.js$": "html-validate-angular/js",
"^.*\\.html$": "html-validate-angular/html"
}
}
const { defineConfig } = require("html-validate");
module.exports = defineConfig({
elements: ["html5"],
transform: {
"^.*\\.js$": "html-validate-angular/js",
"^.*\\.html$": "html-validate-angular/html",
},
});