Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,4 @@ body:
- label: I have provided clear reproduction steps
required: true
- label: This is a bug in the bot, not a Discord or API issue
required: true
required: true
7 changes: 7 additions & 0 deletions .oxfmtrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"$schema": "./node_modules/oxfmt/configuration_schema.json",
"tabWidth": 2,
"printWidth": 100,
"sortPackageJson": false,
"ignorePatterns": []
}
4 changes: 0 additions & 4 deletions .prettierrc

This file was deleted.

4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{
"typescript.experimental.useTsgo": true
"typescript.experimental.useTsgo": true,
"editor.defaultFormatter": "oxc.oxc-vscode",
"editor.formatOnSave": true
}
4 changes: 3 additions & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ bun run db:seed # Seed default teams (RACheats)
# Development
bun run dev # Run with hot reload (--watch)
bun run tsc # TypeScript type checking (via tsgo)
bun run format # Format code with oxfmt
bun run format:check # Check formatting without writing
bun run lint # Run ESLint
bun run lint:fix # Auto-fix linting issues
bun run test # Run all tests (vitest)
bun run test:watch # Run tests in watch mode (vitest)
bun run verify # Run lint, type checking, and tests (comprehensive check)
bun run verify # Run format check, lint, type checking, and tests

# Deployment
bun run deploy-commands # Deploy slash commands to Discord (required after adding/modifying slash commands)
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,14 @@ For production deployments, the bot is automatically deployed via Forge when cha
- `bun deploy-commands` - Deploy slash commands to Discord
- `bun db:generate` - Generate database migrations
- `bun db:migrate` - Apply database migrations
- `bun run format` - Format code with oxfmt
- `bun run format:check` - Check formatting without writing
- `bun lint` - Run ESLint
- `bun lint:fix` - Run ESLint with auto-fix
- `bun tsc` - Run TypeScript type checking (via tsgo)
- `bun run test` - Run all tests
- `bun run test:watch` - Run tests in watch mode
- `bun verify` - Run lint, type checking, and tests (comprehensive check)
- `bun verify` - Run format check, lint, type checking, and tests

## Commands

Expand Down
57 changes: 42 additions & 15 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion drizzle.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ export default defineConfig({
dbCredentials: {
url: "./rabot.db",
},
});
});
12 changes: 1 addition & 11 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import eslint from "@eslint/js";
import prettierConfig from "eslint-config-prettier";
import importPlugin from "eslint-plugin-import";
import prettier from "eslint-plugin-prettier";
import simpleImportSort from "eslint-plugin-simple-import-sort";
import sortKeysShorthand from "eslint-plugin-sort-keys-shorthand";
import unicorn from "eslint-plugin-unicorn";
Expand Down Expand Up @@ -31,7 +30,6 @@ export default tseslint.config(

plugins: {
"@typescript-eslint": tseslint.plugin,
prettier,
"simple-import-sort": simpleImportSort,
unicorn,
"sort-keys-shorthand": sortKeysShorthand,
Expand Down Expand Up @@ -109,14 +107,6 @@ export default tseslint.config(
"unicorn/prefer-module": "off",
"unicorn/prefer-node-protocol": "off",
"unicorn/prefer-switch": "off",

"prettier/prettier": [
"error",
{
tabWidth: 2,
printWidth: 100,
},
],
},
},

Expand All @@ -126,5 +116,5 @@ export default tseslint.config(
rules: {
"@typescript-eslint/no-explicit-any": "off", // Allow any in test files
},
}
},
);
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,13 @@
"db:migrate": "bun run src/database/migrate.ts",
"db:seed": "bun run src/database/seed-teams.ts",
"tsc": "tsgo --noEmit",
"format": "oxfmt",
"format:check": "oxfmt --check",
"lint": "eslint src --cache",
"lint:fix": "eslint src --fix",
"test": "vitest run",
"test:watch": "vitest",
"verify": "bun run lint:fix && bun run tsc && vitest run",
"verify": "bun run format:check && bun run lint:fix && bun run tsc && vitest run",
"postinstall": "git config core.hooksPath .hooks && chmod +x .hooks/*"
},
"dependencies": {
Expand All @@ -54,10 +56,10 @@
"eslint-config-prettier": "^10.1.5",
"eslint-import-resolver-typescript": "^4.4.4",
"eslint-plugin-import": "^2.32.0",
"eslint-plugin-prettier": "^5.5.1",
"eslint-plugin-simple-import-sort": "^12.1.1",
"eslint-plugin-sort-keys-shorthand": "^3.0.0",
"eslint-plugin-unicorn": "^59.0.1",
"oxfmt": "^0.35.0",
"typescript-eslint": "^8.37.0",
"vitest": "^4.0.18"
}
Expand Down