eslint-plugin-ember: `require-tagless-components` rule fails for `Service.extend`

In tests/integration/components/foo-test.js, if I have:

import Service from '@ember/service';
Service.extend({});

the lint rule fails

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 1
  • Comments: 15 (12 by maintainers)

Commits related to this issue

Most upvoted comments

@bmish do you mean the lint failure error message? (I’m not getting an exception thrown, just a false positive on the lint rule)

113:21  error  Please switch to a tagless component by setting `tagName: ''` or converting to a Glimmer component  ember/require-tagless-components