Add template-lint to your packages.
-
Install these packages:
pnpm add -D @gossi/config-template-lint ember-template-lint
-
Create a
.template-lintrc.js
file with these contents:'use strict'; module.exports = require('@gossi/config-template-lint');
-
Add scripts to execute linting
{ "scripts": { "lint:hbs": "ember-template-lint . --no-error-on-unmatched-pattern", "lint:hbs:fix": "ember-template-lint . --fix --no-error-on-unmatched-pattern" } }