eslint-plugin-ember
eslint-plugin-ember copied to clipboard
A failing test for no-deprecated-router-transition-methods (multiple classes)
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');
}
}
Added a test for the same issue in no-implicit-injections