Aurelia Template Lint Loader for Webpack 2
Usage
Apply the aurelia-template-lint-webpack-loader in your webpack configuration, enforcing the rule as 'pre':
module.exports = {
module: {
rules: [{
test: /\.html$/i,
enforce: 'pre',
include: [
path.resolve('src')
],
use: [{
loader: 'aurelia-template-lint-webpack-loader',
options: {
configuration: options && options.config,
emitErrors: false,
typeChecking: true,
reflectionOpts: {
sourceFileGlob: './**/*.ts',
typingsFileGlob: './**/*.d.ts',
}
}
}]
}]
}
}
More options and configuration
Behind the scenes, the loader is using the following linter https://github.com/MeirionHughes/aurelia-template-lint
Installation
npm install aurelia-template-lint-loader --save-dev
License
This is a Webpack 2 + TypeScript fork of https://github.com/w3tecch/aurelia-template-lint-loader.
MIT (http://www.opensource.org/licenses/mit-license.php)