UNPKG

eslint-plugin-ember

Version:
31 lines (29 loc) 759 B
/** @type {import('eslint').Rule.RuleModule} */ module.exports = { meta: { type: 'suggestion', docs: { description: 'disallow usage of ember-page-title component', category: 'Best Practices', url: 'https://github.com/ember-cli/eslint-plugin-ember/tree/master/docs/rules/template-no-page-title-component.md', templateMode: 'both', }, fixable: null, schema: [], messages: { noPageTitle: 'Use the `pageTitle` helper instead of the <PageTitle> component.', }, }, create(context) { return { GlimmerElementNode(node) { if (node.tag === 'PageTitle') { context.report({ node, messageId: 'noPageTitle', }); } }, }; }, };