Auto-format code (#277)
This commit is contained in:
@@ -8,7 +8,9 @@
|
||||
import fs from "fs/promises"
|
||||
import paths from "path"
|
||||
import sgit from "simple-git"
|
||||
process.on("unhandledRejection", error => { throw error }) //eslint-disable-line max-statements-per-line, brace-style
|
||||
process.on("unhandledRejection", error => {
|
||||
throw error
|
||||
})
|
||||
|
||||
//Debug message buffer
|
||||
let DEBUG = true
|
||||
|
||||
@@ -344,7 +344,7 @@
|
||||
//Apply replacements
|
||||
for (const [emoji, twemoji] of emojis) {
|
||||
if (custom)
|
||||
rendered = rendered.replace(new RegExp(`<metrics[ ]*(?<attributes>[^>]*)>${emoji}</metrics>`, "g"), twemoji.replace(/(<svg class="twemoji" [\s\S]+?)(>)/, "$1 $<attributes> $2")) //eslint-disable-line prefer-named-capture-group
|
||||
rendered = rendered.replace(new RegExp(`<metrics[ ]*(?<attributes>[^>]*)>${emoji}</metrics>`, "g"), twemoji.replace(/(<svg class="twemoji" [\s\S]+?)(>)/, "$1 $<attributes> $2"))
|
||||
rendered = rendered.replace(new RegExp(emoji, "g"), twemoji)
|
||||
}
|
||||
return rendered
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
# Overrides enforced rules for mocks
|
||||
rules:
|
||||
max-params: off
|
||||
no-unused-vars: off
|
||||
prefer-named-capture-group: off
|
||||
no-unused-vars: off
|
||||
Reference in New Issue
Block a user