Skip to content

Commit 7c55617

Browse files
committed
chore: replace eslint with oxlint
Swap the Next apps' eslint/eslint-config-next setup for oxlint, and add oxlint at the repo root. oxlint is the oxc linter (https://oxc.rs/docs/guide/usage/linter): one binary, no config needed, and it lints the whole tree from the root.
1 parent 35b6139 commit 7c55617

12 files changed

Lines changed: 1003 additions & 9764 deletions

File tree

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The design system source is `examples/monorepo/packages/ds/src` — tokens in `t
1414

1515
- Examples are **standalone**: pinned dependency versions, no `workspace:*` (except the `monorepo` example, which is itself a workspace).
1616
- Format with **oxfmt** (`pnpm format`), not Prettier. Config in `.oxfmtrc.json` — single quotes, no semicolons.
17-
- Lint the Next apps with `pnpm lint` (eslint-config-next).
17+
- Lint the Next apps with `pnpm lint` (oxlint).
1818
- Do not edit generated output: `styled-system/`, `dist/`, `.next/`.
1919

2020
## Commands

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ The shadcn design system lives in `examples/monorepo/packages/ds` and is publish
3737

3838
- [pnpm](https://pnpm.io/) for packages.
3939
- [oxfmt](https://oxc.rs) for formatting (`.oxfmtrc.json` — single quotes, no semicolons).
40-
- [ESLint](https://eslint.org/) (`eslint-config-next`) for the Next apps.
40+
- [oxlint](https://oxc.rs/docs/guide/usage/linter) for linting the Next apps.
4141

4242
## Commands
4343

examples/monorepo/apps/web/eslint.config.mjs

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

examples/monorepo/apps/web/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"prebuild": "panda build",
1010
"build": "next build",
1111
"start": "next start",
12-
"lint": "eslint ."
12+
"lint": "oxlint"
1313
},
1414
"dependencies": {
1515
"next": "16.3.0",
@@ -24,8 +24,7 @@
2424
"@types/node": "24.10.1",
2525
"@types/react": "19.2.7",
2626
"@types/react-dom": "19.2.3",
27-
"eslint": "^9",
28-
"eslint-config-next": "16.3.0",
27+
"oxlint": "^1.78.0",
2928
"typescript": "5.9.3"
3029
}
3130
}

0 commit comments

Comments
 (0)