Skip to content

Conversation

CvX
Copy link
Contributor

@CvX CvX commented Jan 24, 2024

This rule incorrectly fails on the following code, where a legacy .extend class uses decorators:

import Route from '@ember/routing/route';
import { action } from '@ember/object';

export default Route.extend({
  @action
  foo() {
    this.transitionTo('login');
  }
});

CvX added 2 commits January 24, 2024 23:04
…ass, decorators)

This rule incorrectly fails on the following code, where a legacy `.extend` class uses decorators:

```js
import Route from '@ember/routing/route';
import { action } from '@ember/object';

export default Route.extend({
  @action
  foo() {
    this.transitionTo('login');
  }
});
```
@CvX
Copy link
Contributor Author

CvX commented Jan 24, 2024

Added a test for the same issue in no-implicit-injections

@bmish bmish added the bug label Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants