Repository navigation
chore: migrate from ESLint to OxLint and OxFmt - #180
Conversation
- Replace ESLint with OxLint for linting - Replace Prettier with OxFmt for formatting - Add .oxlintrc.json based on wolfstar.rocks config - Add .oxfmtrc.json for formatting config - Update CI workflows with pinned actions and concurrency - Update lint-staged, scripts, and agent docs - Remove ESLint config files and dependencies - Apply auto-fixable lint fixes to source files
|
Important Review skippedAuto reviews are limited based on label configuration. 🏷️ Required labels (at least one) (2)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #180 +/- ##
==========================================
- Coverage 78.12% 78.07% -0.05%
==========================================
Files 81 81
Lines 2153 2153
Branches 212 211 -1
==========================================
- Hits 1682 1681 -1
- Misses 448 449 +1
Partials 23 23 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull request overview
Migrates the repo’s linting/formatting stack and related automation away from ESLint/Prettier toward OxLint/OxFmt, updating configs, docs, CI, and applying auto-fixable code/style changes across the codebase.
Changes:
- Replace ESLint configuration/assets with an OxLint configuration (
.oxlintrc.json) and update developer/CI workflows accordingly. - Introduce OxFmt configuration (
.oxfmtrc.json) and apply formatting/lint auto-fixes across source and docs. - Restructure CI workflow(s) (including concurrency + merge queue trigger) and remove ESLint-specific tooling/files.
Reviewed changes
Copilot reviewed 26 out of 37 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| tsconfig.eslint.json | Removed ESLint-specific TypeScript config. |
| src/listeners/guilds/messages/guildUserMessageImageNotify.ts | Minor lint-driven parseInt style update. |
| src/lib/util/Sanitizer/clean.ts | Switch to TypeError for invalid call order (lint-driven). |
| src/lib/util/resolvers/TimeSpan.ts | Use Number.NaN (lint-driven). |
| src/lib/util/functions/emojis.ts | Normalize unicode escapes / hex literal casing (format-driven). |
| src/lib/util/constants.ts | Normalize hex literal casing (format-driven). |
| src/lib/structures/SettingsMenu.ts | Normalize hex literal casing (format-driven). |
| src/lib/schedule/manager/ScheduleEntry.ts | Lint-driven refactor around task payload creation. |
| src/commands/Moderation/Utilities/case.ts | Normalize hex literal casing (format-driven). |
| src/commands/Moderation/dehoist.ts | Normalize hex literal casing (format-driven). |
| src/commands/General/info.ts | Prefer node: protocol import. |
| src/commands/Games/trivia.ts | Minor lint/format tweaks (Number.parseInt, hex casing). |
| src/commands/Games/hungergames.ts | Lint/cleanup refactors (promise executor, set construction, remove no-op catch). |
| README.md | Formatting/indentation normalization. |
| prisma/migrations/migration_lock.toml | Formatting/indentation normalization. |
| pnpm-workspace.yaml | Remove ESLint deprecated version allowlist entry. |
| package.json | Add OxLint/OxFmt + new lint scripts; remove ESLint deps; update lint-staged. |
| crowdin.yml | YAML formatting normalization. |
| .vscode/mcp.json | Remove ESLint MCP server entry. |
| .prettierignore | Removed Prettier ignore file as part of toolchain migration. |
| .oxlintrc.json | Added OxLint configuration (rules/plugins/overrides). |
| .oxfmtrc.json | Added OxFmt configuration (formatting preferences + ignores). |
| .github/workflows/update-tlds.yml | Workflow formatting adjustments. |
| .github/workflows/publish-stable.yml | Workflow formatting adjustments. |
| .github/workflows/labelsync.yml | Workflow formatting adjustments. |
| .github/workflows/continuous-integration.yml | Reworked CI workflow (renamed, concurrency, merge_group, split jobs). |
| .github/workflows/continuous-delivery.yml | Workflow formatting adjustments. |
| .github/workflows/codeql-analysis.yml | Workflow formatting adjustments. |
| .github/TERMS_OF_SERVICE.md | Markdown formatting normalization. |
| .github/problemMatchers/eslint.json | Removed ESLint problem matcher. |
| .github/PRIVACY_POLICY.md | Markdown formatting normalization. |
| .github/agents/wolfstar-dev-agent.md | Update dev-agent doc from ESLint to OxLint. |
| .github/.kodiak.toml | TOML formatting normalization. |
| .eslintrc.json | Removed ESLint config. |
| .eslintignore | Removed ESLint ignore file. |
| .codecov.yml | YAML formatting normalization. |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
28db270 to
08d117e
Compare
lorypelli
left a comment
There was a problem hiding this comment.
I really like this change, LGTM!!!
Summary
Migrates the project linting and formatting toolchain from ESLint + Prettier to OxLint + OxFmt.
Changes
Linting (ESLint -> OxLint)
Formatting (Prettier -> OxFmt)
CI Workflows
Cleanup
Scripts