chore: Code changes & formatting and linting (#3552)

* Do some code changes & run prettier and eslint

* Fix test:test-type script

* Apply code review suggestions

* update heartbeat interval & add a reason for the specific value

* Fix husky error

* Update to TS 5.5

And use ${configDir}

* Fix test.json tsconfig base

---------

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
This commit is contained in:
Fleny
2024-07-08 15:11:41 -05:00
committed by GitHub
co-authored by Skillz4Killz
parent 2f89d4da30
commit 97a8016041
83 changed files with 370 additions and 526 deletions
+2 -2
View File
@@ -26,7 +26,7 @@
"test:unit:watch": "mocha --no-warnings --watch --parallel 'tests/unit/**/*.spec.ts'",
"test:integration": "c8 --r lcov mocha --no-warnings 'tests/integration/**/*.spec.ts' && node ../../scripts/coveragePathFixing.js gateway",
"test:type": "tsc --noEmit",
"test:test-type": "tsc --project tsconfig.test.json"
"test:test-type": "tsc --project tests/tsconfig.json"
},
"dependencies": {
"@discordeno/types": "19.0.0-beta.1",
@@ -49,7 +49,7 @@
"sinon": "^17.0.1",
"ts-node": "^10.9.2",
"tsconfig": "*",
"typescript": "5.4.5",
"typescript": "^5.5.2",
"uWebSockets.js": "https://github.com/uNetworking/uWebSockets.js.git#commit=42c9c0d5d31f46ca4115dc75672b0037ec970f28"
}
}