Skip to content

Commit e1d66ca

Browse files
committed
chore: migrate linting to biome
1 parent 3e663b2 commit e1d66ca

59 files changed

Lines changed: 429 additions & 1553 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3939
- **Express 5 wildcard route compatibility** - Changed unnamed wildcards to named wildcards (`/*splat`)
4040
- **Local build scripts** - Corrected binary name from `yao-pkg` to `pkg`
4141
- **Missing index.html error handling** - Returns proper 500 server error with debugging context instead of misleading 404
42-
- **ESLint configuration** - Split configuration for backend (CommonJS) and frontend (ES modules) with appropriate tsconfig references
42+
- **Lint configuration** - Split configuration for backend (CommonJS) and frontend (ES modules) with appropriate tsconfig references
4343
- **404 error reporting** - Fixed catch-all route to use `req.originalUrl` instead of `req.path`
4444
- **Windows E2E process management**:
4545
- Use `taskkill /F /IM` and `tasklist /FI` for reliable process matching

CLAUDE.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,10 @@ npm run build:all # Build for all platforms
4040

4141
### Code Quality
4242
```bash
43-
npm run lint # Run ESLint on all TypeScript files
44-
npm run lint:fix # Auto-fix ESLint issues
43+
npm run lint # Run Biome lint checks
44+
npm run lint:fix # Auto-fix Biome lint issues
45+
npm run format # Preview Biome formatting changes
46+
npm run format:fix # Apply Biome formatting changes
4547
npm run type-check # TypeScript type checking without emit
4648
npm test # Tests (not yet implemented)
4749
npm run clean # Remove dist directory
@@ -169,7 +171,7 @@ Default config values are in `ConfigManager.ts`.
169171
- `lucide` - Icon library
170172

171173
**Dev**:
172-
- TypeScript 5.7, ESLint 9 with TypeScript ESLint
174+
- TypeScript 5.7, Biome 2 for linting and formatting
173175
- `concurrently` - Parallel build tasks
174176
- `nodemon` - Dev server hot reload
175177
- `pkg` - Executable packaging

biome.json

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.4.5/schema.json",
3+
"vcs": {
4+
"enabled": true,
5+
"clientKind": "git",
6+
"useIgnoreFile": true
7+
},
8+
"files": {
9+
"ignoreUnknown": true,
10+
"includes": [
11+
"**",
12+
"!!**/dist",
13+
"!!**/node_modules",
14+
"!!**/build",
15+
"!!**/out",
16+
"!!.dependencies",
17+
"!!coverage",
18+
"!!FlashForgeUI-Electron"
19+
]
20+
},
21+
"formatter": {
22+
"enabled": true,
23+
"indentStyle": "space",
24+
"indentWidth": 2,
25+
"lineWidth": 100,
26+
"lineEnding": "lf"
27+
},
28+
"linter": {
29+
"enabled": true,
30+
"rules": {
31+
"recommended": true,
32+
"style": {
33+
"useNodejsImportProtocol": "off"
34+
},
35+
"suspicious": {
36+
"noExplicitAny": "warn"
37+
}
38+
}
39+
},
40+
"javascript": {
41+
"formatter": {
42+
"quoteStyle": "single",
43+
"jsxQuoteStyle": "double",
44+
"semicolons": "always",
45+
"trailingCommas": "es5",
46+
"arrowParentheses": "always"
47+
}
48+
},
49+
"assist": {
50+
"enabled": true,
51+
"actions": {
52+
"source": {
53+
"organizeImports": "on"
54+
}
55+
}
56+
}
57+
}

eslint.config.mjs

Lines changed: 0 additions & 65 deletions
This file was deleted.

0 commit comments

Comments
 (0)