Skip to content
Draft
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
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ jobs:
- run: npm ci
- run: npm run test:coverage

eslint:
name: 🔍 ESLint
lint:
name: 🔍 Lint
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
Expand All @@ -57,7 +57,7 @@ jobs:
node-version: "24"
cache: "npm"
- run: npm ci
- run: npx eslint --format gha
- run: npm run lint:github

prettier:
name: 🎨 Prettier
Expand Down
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
export PATH="/usr/local/bin:$HOME/.npm-global/bin:$HOME/.nvm/versions/node/$(node -v)/bin:$PATH"

# Then run lint-staged if tests pass
npx lint-staged
npx lint-staged --concurrent false
30 changes: 30 additions & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"env": {
"browser": true,
"node": true
},
"ignorePatterns": [
"src/server/gatekeeper/**",
"tests/pathfinding/playground/**"
],
"categories": {
"correctness": "off",
"suspicious": "off",
"pedantic": "off",
"perf": "off",
"style": "off",
"restriction": "off",
"nursery": "off"
},
"options": {
"typeAware": true
},
"rules": {
"typescript/no-explicit-any": "off",
"typescript/prefer-nullish-coalescing": "error",
"eqeqeq": "error",
"no-case-declarations": "error",
"no-unused-vars": "off"
}
}
4 changes: 2 additions & 2 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ npm run start:client # Client only
npm run start:server-dev # Server only
npm test # Run all tests (Vitest)
npm run test:coverage # Tests with coverage
npm run lint # ESLint
npm run lint:fix # ESLint with auto-fix
npm run lint # Oxlint + ESLint
npm run lint:fix # Oxlint + ESLint with auto-fix
npm run format # Prettier
npm run build-prod # Production build
```
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ git checkout -b fix/issue-number-bug-name

### Coding Standards

We enforce code quality using ESLint and Prettier.
We enforce code quality using Oxlint, ESLint, and Prettier. ESLint remains during the Oxlint migration as a compatibility backstop.

- **Format Code**:
```bash
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,13 @@ npm run dev:prod
npm run format
```

- **Lint code**:
- **Lint code with Oxlint and ESLint**:

```bash
npm run lint
```

- **Lint and fix code**:
- **Lint and fix code with Oxlint and ESLint**:

```bash
npm run lint:fix
Expand Down
Loading
Loading