Registry / testing / ember-template-lint-typed-templates

ember-template-lint-typed-templates

JSON →
library0.1.7jsnpmunverified

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.

npm install ember-template-lint-typed-templates
INSTALL
IMPORT
SIG · EMBER-TEMPLATE-LIN
E
ember-template-lint-typed-templates
testingjavascriptv0.1.7
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.

plugin
module.exports = { plugins: ['ember-template-lint-typed-templates'] };
import plugin from 'ember-template-lint-typed-templates';
This package is a plugin for ember-template-lint; it is not imported directly in application code, but added as a string in the plugins array.
recommended
module.exports = { extends: ['ember-template-lint-typed-templates:recommended'] };
extends: ['recommended']
The recommended config is accessed via the plugin namespace, not by name alone.
rules
module.exports = { rules: { 'typed-templates/no-unknown-arguments': 'error' } };
const { noUnknownArguments } = require('ember-template-lint-typed-templates');
Rules are registered via the plugin; individual rule imports are not supported.

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 .
ember-template-lint --version
Debug
Known issues
breakingRequires 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.
affects: <0.1.0
gotchaThe 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.
affects: all
deprecatedThe '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.
affects: all
Errors
Common errors & fixes
Cannot find module 'ember-template-lint-typed-templates'
Plugin not installed or not in node_modules.
fix
Run: yarn add -D ember-template-lint-typed-templates
Plugin 'ember-template-lint-typed-templates' was used but not installed
Plugin listed in plugins but not installed or added to devDependencies.
fix
Run: yarn add -D ember-template-lint-typed-templates
Unknown rule: typed-templates/no-unknown-arguments
Plugin not loaded or incorrect rule name.
fix
Ensure plugin is in plugins array and use correct rule names from the recommended config.
Upgrade
Version history
0.1.7latest on npm
Audit
Dependencies
ember-template-lintrequiredPeer dependency: this package is a plugin for ember-template-lint
els-addon-typed-templatesrequiredPeer dependency: provides the typed template analysis (Glint-based)
Agent activity
2 hits · last 30 days
node
2
Resources
ember-template-lint-typed-templates — npm install ember-template-lint-typed-templates · libregistry