DEV: Bump @discourse/lint-configs and autofix (#29847)

In particular, this applies:

- new `discourse/no-implicit-this` template-lint rule
- `init`/`willDestroy` ordering enforcement
- `lines-between-class-members`
This commit is contained in:
David Taylor
2024-11-20 14:15:04 +00:00
committed by GitHub
parent 581fb97bfa
commit 6f7c581a80
62 changed files with 304 additions and 263 deletions

View File

@ -8,6 +8,10 @@ const KEEP_ALIVE_DURATION_SECONDS = 10;
export default class ComposerPresenceManager extends Service {
@service presence;
willDestroy() {
this.leave();
}
notifyState(intent, id) {
if (
this.siteSettings.allow_users_to_hide_profile &&
@ -57,8 +61,4 @@ export default class ComposerPresenceManager extends Service {
this._presentChannel = this.presence.getChannel(channelName);
this._presentChannel.enter();
}
willDestroy() {
this.leave();
}
}