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

Michal Bryxí @michalbryxi

About: Cycle 🚴 , climb 🗻 , run 🏃 , travel 🌍 , enjoy life ♥. IT guy with the need to live fully.

Location:
Interlaken, Switzerland
Joined:
Feb 1, 2018

ember-template-lint recommended rules that I disable

Publish Date: Aug 5
0 0

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

Comments 0 total

    Add comment