mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-22 23:16:46 +00:00
refactor(server): keep three suppressed lines whole so Prettier cannot move them past their directive
Prettier wraps the emoji regex onto the line after its declaration and spreads two any-cast lines in the plugin tests over several lines, which would leave the casts outside the eslint-disable-next-line above them. The regex directive now sits on the line right before the literal, the dev-link controller takes never instead of any for the collaborators it ignores, and the supervisor test reaches the private kill/onExit through one cast.
This commit is contained in:
@@ -18,8 +18,9 @@
|
||||
// escape is an intentional, independent code point to delete — the
|
||||
// no-misleading-character-class rule assumes a class means to combine them, which
|
||||
// is the opposite of what we want here.
|
||||
// eslint-disable-next-line no-misleading-character-class
|
||||
const EMOJI_RE = /\p{Emoji_Presentation}|\p{Emoji_Modifier}|\p{Regional_Indicator}|[\u200D\uFE00-\uFE0F\u20E3\u{E0020}-\u{E007F}]/gu;
|
||||
const EMOJI_RE =
|
||||
// eslint-disable-next-line no-misleading-character-class
|
||||
/\p{Emoji_Presentation}|\p{Emoji_Modifier}|\p{Regional_Indicator}|[\u200D\uFE00-\uFE0F\u20E3\u{E0020}-\u{E007F}]/gu;
|
||||
|
||||
/** Remove emojis from a display string and tidy the whitespace they leave behind. */
|
||||
export function stripEmoji(s: string): string {
|
||||
|
||||
Reference in New Issue
Block a user