Skip to content

Refactor remaining deprecated Ember code#250

Merged
raucao merged 10 commits intomasterfrom
feature/fix_linter_errors
Nov 25, 2021
Merged

Refactor remaining deprecated Ember code#250
raucao merged 10 commits intomasterfrom
feature/fix_linter_errors

Conversation

@galfert
Copy link
Copy Markdown
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.
@galfert galfert requested a review from raucao November 25, 2021 17:30
Copy link
Copy Markdown
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