How to disable ember/no-empty-glimmer-component-classes

Well technically in any *.js/*.ts file, but my 🧠 just got stuck on “this has to be part of ember-template-lint config”, because I’ve seen a component that is basically just HTML.

So if anyone bumps into this, the answer is NOT to put the config in .te…


This content originally appeared on DEV Community and was authored by Michal Bryxí

Well technically in any *.js/*.ts file, but my 🧠 just got stuck on "this has to be part of ember-template-lint config", because I've seen a component that is basically just HTML.

So if anyone bumps into this, the answer is NOT to put the config in .template-lintrc.js, but to eslint.config.mjs (or equivalent), in following way:

// eslint.config.mjs

export default ts.config(
  {
    files: ['**/*.{ts,gts}'],
    languageOptions: {
      parser: ember.parser,
      parserOptions: parserOptions.esm.ts,
    },
    extends: [...ts.configs.recommendedTypeChecked, ember.configs.gts],
    rules: {
      'ember/no-empty-glimmer-component-classes': 'off',
    },
  },
);


This content originally appeared on DEV Community and was authored by Michal Bryxí


Print Share Comment Cite Upload Translate Updates
APA

Michal Bryxí | Sciencx (2025-03-29T12:46:47+00:00) How to disable ember/no-empty-glimmer-component-classes. Retrieved from https://www.scien.cx/2025/03/29/how-to-disable-ember-no-empty-glimmer-component-classes/

MLA
" » How to disable ember/no-empty-glimmer-component-classes." Michal Bryxí | Sciencx - Saturday March 29, 2025, https://www.scien.cx/2025/03/29/how-to-disable-ember-no-empty-glimmer-component-classes/
HARVARD
Michal Bryxí | Sciencx Saturday March 29, 2025 » How to disable ember/no-empty-glimmer-component-classes., viewed ,<https://www.scien.cx/2025/03/29/how-to-disable-ember-no-empty-glimmer-component-classes/>
VANCOUVER
Michal Bryxí | Sciencx - » How to disable ember/no-empty-glimmer-component-classes. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/03/29/how-to-disable-ember-no-empty-glimmer-component-classes/
CHICAGO
" » How to disable ember/no-empty-glimmer-component-classes." Michal Bryxí | Sciencx - Accessed . https://www.scien.cx/2025/03/29/how-to-disable-ember-no-empty-glimmer-component-classes/
IEEE
" » How to disable ember/no-empty-glimmer-component-classes." Michal Bryxí | Sciencx [Online]. Available: https://www.scien.cx/2025/03/29/how-to-disable-ember-no-empty-glimmer-component-classes/. [Accessed: ]
rf:citation
» How to disable ember/no-empty-glimmer-component-classes | Michal Bryxí | Sciencx | https://www.scien.cx/2025/03/29/how-to-disable-ember-no-empty-glimmer-component-classes/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.