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

Add new rule no-deprecated-router-transition-methods #1715

Merged

Conversation

rtablada
Copy link
Contributor

Similar to #1714 this implements a lint rule to detect and fix errors associated with the routing.transition-methods deprecation.

This closes #1074

@lin-ll lin-ll changed the title Implement no-deprecated-router-transition-methods rule Add new rule no-deprecated-router-transition-methods Dec 22, 2022
docs/rules/no-deprecated-router-transition-methods.md Outdated Show resolved Hide resolved
lib/utils/decorators.js Outdated Show resolved Hide resolved
docs/rules/no-deprecated-router-transition-methods.md Outdated Show resolved Hide resolved
@rtablada rtablada requested review from lin-ll and bmish and removed request for lin-ll December 27, 2022 19:35
@rtablada
Copy link
Contributor Author

I've updated the tests to have some examples of multiple classes (and fixes), updated the readme as requested, and have made changes to the error message to use messageId

@lin-ll
Copy link
Collaborator

lin-ll commented Dec 27, 2022

LGTM - but looks like some tests / lint errors are still failing

Copy link
Member

@bmish bmish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great progress. Left comments mostly about tests.

@rtablada rtablada force-pushed the rt/no-deprecated-router-transition-methods branch from 75faccf to 746dec3 Compare December 30, 2022 20:51
@rtablada rtablada force-pushed the rt/no-deprecated-router-transition-methods branch from 746dec3 to 211f50e Compare December 30, 2022 21:02
@rtablada rtablada requested a review from bmish December 30, 2022 22:44
@rtablada
Copy link
Contributor Author

Updated this PR with requested feedback and learnings from the no-implicit-injections PR.

Added nested class tests, class expression tests, and accounted for legacy .extends

Copy link
Member

@bmish bmish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@bmish bmish merged commit e965de5 into ember-cli:master Dec 30, 2022
@bmish bmish changed the title Add new rule no-deprecated-router-transition-methods Add new rule no-deprecated-router-transition-methods Dec 30, 2022
@bmish bmish mentioned this pull request Dec 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New rule: no-deprecated-transition-methods
3 participants