DEV Community

Cover image for ember-template-lint recommended rules that I disable
Michal Bryxí
Michal Bryxí

Posted on

ember-template-lint recommended rules that I disable

EmberJS comes with great set of default tooling. One of them is ember-template-lint which helps making sure that our *.hbs, *.gjs and *.gts files are following one format.

Sadly template-linter has no awareness of JS-scope at the moment and so sometimes it complains about things that are not really an issue.

I'm a big fan of frontile.dev for my forms and so I use their <Input /> element a lot. This confuses template linter which shouts at me various not so helpful things. So I found out that following set of "recommended" rules is actually good to disable:

// template-lintrc.js

'use strict';

module.exports = {
  extends: 'recommended',
  rules: {
    'require-input-label': false,
    'no-builtin-form-components': false,
    'no-unknown-arguments-for-builtin-components': false,
  },
};
Enter fullscreen mode Exit fullscreen mode

Top comments (0)