DEV: Update lint-configs and autofix issues (#31620)

This updates us to Prettier 3.x
This commit is contained in:
Jarek Radosz
2025-03-05 01:20:16 +01:00
committed by GitHub
parent f8b30ffd06
commit 28e00d9bfe
154 changed files with 3651 additions and 2922 deletions
@@ -97,16 +97,26 @@ module("Discourse Chat | Component | <ChannelName />", function (hooks) {
channel.tracking.unreadCount = 1;
let unreadIndicator = true;
await render(<template>
<ChannelName @channel={{channel}} @unreadIndicator={{unreadIndicator}} />
</template>);
await render(
<template>
<ChannelName
@channel={{channel}}
@unreadIndicator={{unreadIndicator}}
/>
</template>
);
assert.dom(".chat-channel-unread-indicator").exists();
unreadIndicator = false;
await render(<template>
<ChannelName @channel={{channel}} @unreadIndicator={{unreadIndicator}} />
</template>);
await render(
<template>
<ChannelName
@channel={{channel}}
@unreadIndicator={{unreadIndicator}}
/>
</template>
);
assert.dom(".chat-channel-unread-indicator").doesNotExist();
});
@@ -12,9 +12,11 @@ module("Discourse Chat | Component | <ThreadSettings />", function (hooks) {
this.currentUser.admin = true;
const thread = new ChatFabricators(getOwner(this)).thread();
await render(<template>
<ChatModalThreadSettings @inline={{true}} @model={{thread}} />
</template>);
await render(
<template>
<ChatModalThreadSettings @inline={{true}} @model={{thread}} />
</template>
);
assert.dom(".discourse-ai-cta").exists();
});
@@ -23,9 +25,11 @@ module("Discourse Chat | Component | <ThreadSettings />", function (hooks) {
this.currentUser.admin = false;
const thread = new ChatFabricators(getOwner(this)).thread();
await render(<template>
<ChatModalThreadSettings @inline={{true}} @model={{thread}} />
</template>);
await render(
<template>
<ChatModalThreadSettings @inline={{true}} @model={{thread}} />
</template>
);
assert.dom(".discourse-ai-cta").doesNotExist();
});