format & add version

pull/5/head
lyc8503 2023-11-06 12:19:33 +08:00
parent 87611700c3
commit 9a390c31fe
5 changed files with 192 additions and 205 deletions

View File

@ -1,13 +0,0 @@
# http://editorconfig.org
root = true
[*]
indent_style = tab
tab_width = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.yml]
indent_style = space

View File

@ -1,6 +0,0 @@
{
"printWidth": 140,
"singleQuote": true,
"semi": true,
"useTabs": true
}

5
worker/.prettierrc.yaml Normal file
View File

@ -0,0 +1,5 @@
trailingComma: 'es5'
tabWidth: 2
semi: false
singleQuote: true
printWidth: 100

View File

@ -114,6 +114,7 @@ export default {
type: 'json',
})) as unknown as MonitorState) ||
({
version: 1,
lastUpdate: 0,
overallUp: 0,
overallDown: 0,