Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A failing test for no-deprecated-router-transition-methods (legacy class, decorators) #2073

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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