-
Notifications
You must be signed in to change notification settings - Fork 5
Replace ESLint with oxlint for significantly faster linting performance #18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: Boshen <[email protected]>
|
@copilot move apps/dashboard/.oxlintrc.json to the package root, along with relevant commands. |
Co-authored-by: Boshen <[email protected]>
Done! I've moved
The change maintains the same fast performance (2ms, 127 rules, 4 threads) while centralizing configuration for the monorepo. Commit: ab3e8cf |
apps/dashboard/package.json
Outdated
| "dev": "vite", | ||
| "build": "tsc -b && vite build", | ||
| "lint": "eslint .", | ||
| "lint": "oxlint --config ../../.oxlintrc.json .", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot move this command to package root as workspace command.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done! I've moved the lint command to the package root as a workspace command:
- Root package.json: Changed from
"lint": "pnpm -r lint"to"lint": "oxlint ." - Dashboard package.json: Removed the dashboard-specific lint script
- Simplified: oxlint automatically picks up
.oxlintrc.jsonfrom root, no config path needed
All commands work unchanged (pnpm lint, pnpm build, pnpm build-deploy) with the same fast performance. Commit: cd1a110
Co-authored-by: Boshen <[email protected]>
This PR switches the project from ESLint to oxlint, a Rust-based linter that provides dramatically faster performance while maintaining compatibility with most ESLint rules.
Performance Improvements
Changes Made
Dependencies
eslint,@eslint/js,eslint-plugin-react-hooks,eslint-plugin-react-refresh,typescript-eslint,globalsoxlintv1.12.0 in rootdevDependenciesfor monorepo consistencyConfiguration
.oxlintrc.jsonat package root for centralized monorepo configurationreact/react-in-jsx-scope: offfor modern React with new JSX transformdistto ignore patternsScripts & Workflow
oxlint ..oxlintrc.jsonfrom rootpnpm lint,pnpm build) work unchangedDocumentation
Validation
✅ All lint rules pass with 0 warnings/errors
✅ Build process works unchanged
✅ Development server starts normally
✅ Error detection confirmed (tested with intentional code issues)
✅ Centralized configuration works across monorepo
✅ Root workspace linting command functional
The switch maintains all existing code quality standards while providing significantly faster feedback during development and proper monorepo organization with centralized commands.
Fixes #17.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.