eslint for notification.js

This commit is contained in:
LouisLam 2021-08-25 01:21:06 +08:00
parent f96d792fa1
commit 682e4d45e2
2 changed files with 4 additions and 3 deletions

View File

@ -75,5 +75,6 @@ module.exports = {
"no-empty": ["error", { "no-empty": ["error", {
"allowEmptyCatch": true "allowEmptyCatch": true
}], }],
"no-control-regex": "off"
}, },
} }

View File

@ -404,7 +404,7 @@ class Notification {
"messages": [ "messages": [
{ {
"type": "text", "type": "text",
"text":"Test Successful!" "text": "Test Successful!"
} }
] ]
} }
@ -415,7 +415,7 @@ class Notification {
"messages": [ "messages": [
{ {
"type": "text", "type": "text",
"text":"UptimeKuma Alert: [🔴 Down]\n" + "Name: " + monitorJSON["name"] + " \n" + heartbeatJSON["msg"] + "\nTime (UTC): " + heartbeatJSON["time"] "text": "UptimeKuma Alert: [🔴 Down]\n" + "Name: " + monitorJSON["name"] + " \n" + heartbeatJSON["msg"] + "\nTime (UTC): " + heartbeatJSON["time"]
} }
] ]
} }
@ -426,7 +426,7 @@ class Notification {
"messages": [ "messages": [
{ {
"type": "text", "type": "text",
"text":"UptimeKuma Alert: [✅ Up]\n" + "Name: " + monitorJSON["name"] + " \n" + heartbeatJSON["msg"] + "\nTime (UTC): " + heartbeatJSON["time"] "text": "UptimeKuma Alert: [✅ Up]\n" + "Name: " + monitorJSON["name"] + " \n" + heartbeatJSON["msg"] + "\nTime (UTC): " + heartbeatJSON["time"]
} }
] ]
} }