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
+1 -1
View File
@@ -22,4 +22,4 @@
"noInterop": false
},
"sourceMaps": "inline"
}
}
+3 -4
View File
@@ -26,11 +26,10 @@
"test:bun-unit": "node ../../scripts/fixBunTestExtension.js && bun test bunTestsDist",
"test:unit:watch": "mocha --no-warnings --watch --parallel 'tests/**/*.spec.ts'",
"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",
"tweetnacl": "^1.0.3"
"@discordeno/types": "19.0.0-beta.1"
},
"devDependencies": {
"@swc/cli": "^0.3.9",
@@ -47,6 +46,6 @@
"sinon": "^17.0.1",
"ts-node": "^10.9.2",
"tsconfig": "*",
"typescript": "5.4.5"
"typescript": "^5.5.2"
}
}
+3
View File
@@ -0,0 +1,3 @@
{
"extends": "tsconfig/test.json"
}
+1 -6
View File
@@ -1,8 +1,3 @@
{
"extends": "tsconfig/base.json",
"compilerOptions": {
"outDir": "./dist"
},
"include": ["./src/**/*.ts", "./src/**/*.tsx"],
"exclude": ["node_modules", "dist", "test", "tests"]
"extends": "tsconfig/base.json"
}
-5
View File
@@ -1,5 +0,0 @@
{
"extends": "tsconfig/test.json",
"include": ["tests"],
"exclude": ["node_modules", "dist", "src"]
}