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

Refactor remaining deprecated Ember code #250

Merged
merged 10 commits into from
Nov 25, 2021
Merged

Conversation

galfert
Copy link
Contributor

@galfert galfert commented Nov 25, 2021

This fixes all remaining linter warnings.

Replace computed properties with getter methods and, where appropriate,
use the @cached decorator. See
https://emberjs.github.io/rfcs/0566-memo-decorator.html for
documentation of the decorator.
Routes are not supposed to access the controller from actions.
Don't rely on actions bubbling up the route hierarchy anymore. Instead they should be passed as explicit method references.
Accessing the controller from the route outside of setupController/resetController is discouraged.
This helps with password managers.
input fields with an `id` and `aria-label` attribute trigger a linter warning
All linter warnings have been fixed, so we can just use ember/recommended again.
Copy link
Member

@raucao raucao left a comment

Choose a reason for hiding this comment

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

This is fantastic! 👏 🎉

I pushed a small commit to fix the CodeClimate warning. No attribution necessary.

@raucao raucao changed the title Fix linter warnings/errors Refactor remaining deprecated Ember code Nov 25, 2021
@raucao raucao merged commit bd70185 into master Nov 25, 2021
@raucao raucao deleted the feature/fix_linter_errors branch November 25, 2021 18:40
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.

2 participants