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

Fix formatting in all files for Prettier 3 #326

Merged
merged 1 commit into from
Sep 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion assets/chat/css/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,10 @@ hr {
.combo,
.count,
.x {
text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000,
text-shadow:
-1px -1px 0 #000,
1px -1px 0 #000,
-1px 1px 0 #000,
1px 1px 0 #000;
}
.combo {
Expand Down
8 changes: 4 additions & 4 deletions assets/chat/js/autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class ChatAutoComplete {
/** @member jQuery */
this.ui = $(`<div id="chat-auto-complete"><ul></ul></div>`);
this.ui.on('click', 'li', (e) =>
this.select(parseInt(e.currentTarget.getAttribute('data-index'), 10))
this.select(parseInt(e.currentTarget.getAttribute('data-index'), 10)),
);
this.container = $(this.ui[0].firstElementChild);
this.buckets = new Map();
Expand All @@ -111,7 +111,7 @@ class ChatAutoComplete {
if (keycode === KEYCODES.TAB) {
if (this.results.length > 0)
this.select(
this.selected >= this.results.length - 1 ? 0 : this.selected + 1
this.selected >= this.results.length - 1 ? 0 : this.selected + 1,
);
e.preventDefault();
e.stopPropagation();
Expand Down Expand Up @@ -192,7 +192,7 @@ class ChatAutoComplete {
.filter(
(a) =>
(!a.isemote || !(criteria.useronly || useronly)) &&
regex.test(a.data)
regex.test(a.data),
)
.sort(sortResults)
.slice(0, maxResults);
Expand Down Expand Up @@ -239,7 +239,7 @@ class ChatAutoComplete {

const pre = this.criteria.orig.substr(0, this.criteria.startCaret);
let post = this.criteria.orig.substr(
this.criteria.startCaret + this.criteria.word.length
this.criteria.startCaret + this.criteria.word.length,
);

// always add a space after our completion if there isn't one since people
Expand Down
Loading