Skip to content

Conversation

@CvX
Copy link
Contributor

@CvX CvX commented Jan 24, 2024

This rule incorrectly fails on the following code, where there is more than one Route class in a file:

import Route from '@ember/routing/route'; import { action } from '@ember/object'; export class SettingsRoute extends Route { @action foo() { this.transitionTo('login'); } } export class AnotherRoute extends Route { @action foo() { this.transitionTo('login'); } }
CvX added 2 commits January 24, 2024 23:06
This rule incorrectly fails on the following code, where there is more than one Route class in a file: ```js import Route from '@ember/routing/route'; import { action } from '@ember/object'; export class SettingsRoute extends Route { @action foo() { this.transitionTo('login'); } } export class AnotherRoute extends Route { @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

2 participants