ember-template-lint-typed-templates

raw JSON →
0.1.7 verified Fri May 01 auth: no javascript

An Ember addon that integrates template type checking into ember-template-lint, enabling lint rules that validate templates against TypeScript or Glint type definitions. Current stable version 0.1.7, low release cadence. It requires ember-template-lint >= 3.0 and els-addon-typed-templates >= 4.0.2. Key differentiator: brings typed template validation directly into ember-template-lint's plugin system using Glint's type information.

error Cannot find module 'ember-template-lint-typed-templates'
cause Plugin not installed or not in node_modules.
fix
Run: yarn add -D ember-template-lint-typed-templates
error Plugin 'ember-template-lint-typed-templates' was used but not installed
cause Plugin listed in plugins but not installed or added to devDependencies.
fix
Run: yarn add -D ember-template-lint-typed-templates
error Unknown rule: typed-templates/no-unknown-arguments
cause Plugin not loaded or incorrect rule name.
fix
Ensure plugin is in plugins array and use correct rule names from the recommended config.
breaking Requires ember-template-lint >= 3.0 and els-addon-typed-templates >= 4.0.2. Older versions are incompatible.
fix Update to ember-template-lint >=3.0 and install els-addon-typed-templates >=4.0.2.
gotcha The plugin does not export any symbols; it must be added as a string in the plugins array.
fix Use string literal 'ember-template-lint-typed-templates' in the plugins array.
deprecated The 'els-addon-typed-templates' addon may see breaking changes with newer Glint versions; keep both addons updated.
fix Monitor releases of els-addon-typed-templates and ember-template-lint-typed-templates.
npm install ember-template-lint-typed-templates
yarn add ember-template-lint-typed-templates
pnpm add ember-template-lint-typed-templates

Shows how to install and configure the plugin for ember-template-lint with the recommended typed templates configuration.

// .template-lintrc.js
module.exports = {
  plugins: ['ember-template-lint-typed-templates'],
  extends: [
    'octane',
    'ember-template-lint-typed-templates:recommended'
  ]
};

// Then run: npx ember-template-lint .