Ember Template Lint Plugin Page Title

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

An ember-template-lint plugin that enforces every route template to have a page title set using the `{{page-title}}` helper. Version 1.0.1 is the current stable release, with no recent release cadence data. Key differentiator: it ensures route templates in Ember applications always contain a page title, leveraging the ember-page-title addon, and integrates seamlessly with the ember-template-lint rule system.

error Cannot find module 'ember-template-lint-plugin-page-title'
cause The plugin package is not installed or not listed in devDependencies.
fix
Run yarn add -D ember-template-lint-plugin-page-title
error Rule 'require-valid-page-title' was not found
cause The plugin is not registered in the plugins array of .template-lintrc.js.
fix
Add 'ember-template-lint-plugin-page-title' to the plugins array in your config file.
gotcha The plugin only works with ember-template-lint >=4.0.0. Older versions are incompatible.
fix Ensure you have ember-template-lint version 4 or above installed.
gotcha The rule 'require-valid-page-title' must be added to the rules object; omitting it will have no effect.
fix Add 'require-valid-page-title': 'warn' (or 'error') to your .template-lintrc.js rules.
gotcha The plugin assumes the presence of the {{page-title}} helper from ember-page-title. Without that addon installed, the rule may produce false positives.
fix Install ember-page-title: yarn add -D ember-page-title
npm install ember-template-lint-plugin-page-title
yarn add ember-template-lint-plugin-page-title
pnpm add ember-template-lint-plugin-page-title

Install and configure ember-template-lint-plugin-page-title to warn when route templates lack a page title.

// Install the plugin and peer dependency
yarn add -D ember-template-lint ember-template-lint-plugin-page-title

// .template-lintrc.js
module.exports = {
  plugins: ['ember-template-lint-plugin-page-title'],
  rules: {
    'require-valid-page-title': 'warn'
  }
};