question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`require-tagless-components` rule fails for `Service.extend`

See original GitHub issue

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

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

the lint rule fails

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
mehulkarcommented, Nov 20, 2019

@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
0reactions
ballPointPenguincommented, May 21, 2021

I see false positives as well when lodash extend is in use within a component, eg

_.extend(notAComponentOrClass(), { foo: 'bar' })
Read more comments on GitHub >

github_iconTop Results From Across the Web

eslint-plugin-ember | Yarn - Package Manager
An ESLint plugin that provides a set of rules for Ember applications based on ... for glob patterns in no-restricted-service-injections rule doc (@bmish) ......
Read more >
eslint-plugin-ember/README.md - UNPKG
> An ESlint plugin that provides set of rules for Ember Applications based on commonly known good practices. 8. 9, ## ❗️Requirements.
Read more >
eslint-plugin-ember - npm
An ESLint plugin that provides a set of rules for Ember applications ... require-tagless-components, disallow using the wrapper element of a ...
Read more >
eslint-plugin-ember - npm Package Health Analysis - Snyk
Further analysis of the maintenance status of eslint-plugin-ember based on released npm ... require('eslint-plugin-node').configs.recommended.rules, ...
Read more >
Rules of Civil Procedure Rule 4(i) Extension of Time to Serve ...
But if the plaintiff shows good cause for the failure, the court must extend the time for service for an appropriate period. Rule...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found