Registry / testing / ember-template-lint-plugin-discourse

ember-template-lint-plugin-discourse

JSON →
library3.0.0jsnpmunverified

A shareable Ember template lint plugin providing a recommended ruleset for Discourse projects. Version 3.0.0 is the latest stable release. It extends ember-template-lint with Discourse-specific Handlebars/HTMLBars conventions. Unlike general lint plugins, this package enforces Discourse's custom formatting rules, making it essential for Discourse addon or theme development. Release cadence is low; updates typically track Discourse core changes.

npm install ember-template-lint-plugin-discourse
INSTALL
IMPORT
SIG · EMBER-TEMPLATE-LIN
E
ember-template-lint-plugin-discourse
testingjavascriptv3.0.0
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 object (default import not used)
✓ plugins: ['ember-template-lint-plugin-discourse']; extends: 'discourse:recommended'
✗ const plugin = require('ember-template-lint-plugin-discourse')
Used as a string in .template-lintrc; no direct import needed.
extend string
✓ extends: 'discourse:recommended'
✗ extends: 'discourse'
The recommended config is exported as 'discourse:recommended' (not just 'discourse').
ES module import (if used programmatically)
✓ import plugin from 'ember-template-lint-plugin-discourse'
✗ const plugin = require('ember-template-lint-plugin-discourse')
Package supports both CJS and ESM; prefer ESM for modern setups.

Configures ember-template-lint with the Discourse plugin and recommended ruleset.

// Install with ember-template-lint // npm install --save-dev ember-template-lint ember-template-lint-plugin-discourse // .template-lintrc.js module.exports = { plugins: ['ember-template-lint-plugin-discourse'], extends: 'discourse:recommended', rules: { // Override or add rules as needed } }; // Run linting // npx ember-template-lint .
Debug
Known issues
gotchaThe plugin must be listed in 'plugins' before using 'extends: discourse:recommended'.
fix
Ensure the plugin is included in the plugins array.
affects: >=1.0
deprecatedOlder versions (<3.0) may have used a different extends value or plugin name.
fix
Upgrade to 3.0 and use 'discourse:recommended'.
affects: <3.0
breakingVersion 3.0 drops support for Node.js 10 and older Ember versions.
fix
Use Node.js 12+ and Ember 3.20+.
affects: >=3.0
Errors
Common errors & fixes
Cannot find module 'ember-template-lint-plugin-discourse'
Plugin not installed or missing in node_modules.
fix
Run npm install --save-dev ember-template-lint-plugin-discourse
Unknown configuration extends value "discourse:recommended"
Plugin not included in plugins array.
fix
Add 'ember-template-lint-plugin-discourse' to the plugins array in .template-lintrc.js
Upgrade
Version history
3.0.0latest on npm
Audit
Dependencies
ember-template-lintrequiredpeer dependency; the plugin relies on ember-template-lint's core engine to function.
Agent activity
4 hits · last 30 days
node
4
Resources
ember-template-lint-plugin-discourse — npm install ember-template-lint-plugin-discourse · libregistry