Sanity check of Aurelia templates for Webpack.
yarn add aurelia-template-check-loader --dev
module.exports = {
module: {
rules: [
{
enforce: "pre",
test: /\.html$/i,
use: [
loader: "aurelia-template-check-loader",
options: {
// Aurelia template lint configuration object
// See https://github.com/aurelia/template-lint
configuration: {},
// Display the linter's output as errors (true) or warnings (false)
emitErrors: true,
// Activates useRuleAureliaBindingAccess option
// See https://github.com/aurelia/template-lint
typeChecking: true
}
]
}
]
}
}
For more configuration options and documentation, go to Aurelia's official template linter.