Upgrade oxlint and enable recommended rules (#2270)
- Upgrade oxlint from v1.8.0 to v1.41.0
- Enable correctness, suspicious, and perf categories for better code
quality checks
- Disable overly pedantic style rules (sort-keys, sort-imports,
no-ternary, etc.)
- Add JSON schema reference for IDE support
#skip-bugbot
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Upgrade oxlint to v1.41.0 and enable only the correctness rule category
to catch real issues while keeping suspicious and perf off. Added a JSON
schema reference in .oxlintrc for IDE support.
- **Dependencies**
- Bump oxlint to ^1.41.0.
- oxlint now requires Node ^20.19.0 or >=22.12.0.
- **Migration**
- Update CI and local Node to meet the new requirement.
- Run lint; expect new warnings from correctness rules.
<sup>Written for commit f182e37e55dfa51ab2b97225f899a7cf1a4d6f46.
Summary will update on new commits.</sup>
<!-- End of auto-generated description by cubic. -->
---------
Co-authored-by:
Claude <noreply@anthropic.com>
正在显示
| ... | @@ -79,7 +79,7 @@ | ... | @@ -79,7 +79,7 @@ |
| "happy-dom": "^17.4.4", | "happy-dom": "^17.4.4", | ||
| "husky": "^9.1.7", | "husky": "^9.1.7", | ||
| "lint-staged": "^15.5.2", | "lint-staged": "^15.5.2", | ||
| "oxlint": "^1.8.0", | "oxlint": "^1.41.0", | ||
| "prettier": "3.5.3", | "prettier": "3.5.3", | ||
| "rimraf": "^6.0.1", | "rimraf": "^6.0.1", | ||
| "typescript": "^5.8.3", | "typescript": "^5.8.3", | ||
| ... | ... |
请
注册
或者
登录
后发表评论