Registry / web-framework / aurelia-template-lint-loader

aurelia-template-lint-loader

JSON →
library1.0.1jsnpmunverified

Webpack loader to lint Aurelia HTML templates using aurelia-template-lint. Version 1.0.1 is the latest stable release. It runs as a pre/post-loader to catch template errors during bundling. Accepts optional configuration like emitErrors, failOnHint, typeChecking, and fileGlob. Differentiators: integrates Aurelia template linting directly into webpack build pipeline. Low maintenance frequency.

npm install aurelia-template-lint-loader
INSTALL
IMPORT
SIG · AURELIA-TEMPLATE-L
A
aurelia-template-lint-loader
web-frameworkjavascriptv1.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Loader configuration entry
module.exports = { module: { preLoaders: [{ test: /\.html$/, loader: 'aurelia-template-lint-loader' }] } }
module.exports = { module: { rules: [{ test: /\.html$/, use: 'aurelia-template-lint-loader' }] } }
Webpack v1 uses preLoaders; v2+ uses rules with enforce: 'pre'.

Webpack configuration to lint Aurelia HTML templates during build with failOnHint enabled.

// webpack.config.js module.exports = { module: { preLoaders: [ { test: /\.html$/, loader: 'aurelia-template-lint-loader' } ] }, aureliaTemplateLinter: { failOnHint: true, emitErrors: false } };
Debug
Known issues
gotchaThe loader is designed for webpack v1 with preLoaders; for webpack v2+ use 'enforce: pre' in rules.
fix
Use module.rules with enforce: 'pre' instead of preLoaders.
affects: >=1.0.0
Errors
Common errors & fixes
failOnHint doesn't log errors
The loader does not output lint errors to console when failOnHint is true.
fix
Update to version 1.0.1 which fixes this issue, or manually check build output.
Upgrade
Version history
1.0.1latest on npm
Audit
Dependencies
aurelia-template-lintrequiredCore linting library for Aurelia templates.
Agent activity
20 hits · last 30 days
node
16
OpenAI (training)
1
Resources
aurelia-template-lint-loader — npm install aurelia-template-lint-loader · libregistry