Added Eslint GitHub Action and Prettier

This commit is contained in:
Ahmad 2024-12-21 18:13:18 -05:00
parent d8df48438d
commit 512b7526ab
No known key found for this signature in database
GPG key ID: 8FD8A93530D182BF
21 changed files with 480 additions and 293 deletions

View file

@ -10,7 +10,9 @@
"compile": "npx tsc",
"target": "node ./target/discord-bot.js",
"start": "yarn run compile && yarn run target",
"lint": "npx eslint ./src"
"lint": "npx eslint ./src && npx tsc --noEmit",
"format": "prettier --check --ignore-path .prettierignore .",
"format:fix": "prettier --write --ignore-path .prettierignore ."
},
"dependencies": {
"discord.js": "^14.16.3",
@ -20,13 +22,16 @@
"devDependencies": {
"@eslint/eslintrc": "^3.2.0",
"@eslint/js": "^9.17.0",
"@microsoft/eslint-formatter-sarif": "^3.1.0",
"@types/node": "^22.10.2",
"@types/pg": "^8.11.10",
"@typescript-eslint/eslint-plugin": "^8.18.1",
"@typescript-eslint/parser": "^8.18.1",
"drizzle-kit": "^0.30.1",
"eslint": "^9.17.0",
"eslint-config-prettier": "^9.1.0",
"globals": "^15.14.0",
"prettier": "3.4.2",
"ts-node": "^10.9.2",
"tsx": "^4.19.2",
"typescript": "^5.7.2"