0.1.1 • Published 3 years ago

aurelia-template-check-loader v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

aurelia-template-check-loader

Sanity check of Aurelia templates for Webpack.

Installation

yarn add aurelia-template-check-loader --dev

How to use

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
          }
        ]
      }
    ]
  }
}

Configuration options

For more configuration options and documentation, go to Aurelia's official template linter.