eslint-plugin-ember icon indicating copy to clipboard operation
eslint-plugin-ember copied to clipboard

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

Open CvX opened this issue 1 year ago • 1 comments

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 avatar Jan 24 '24 22:01 CvX

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

CvX avatar Jan 24 '24 22:01 CvX