mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
f6b98578d3
### What? This PR adds an example on how to lint your app with Oxlint ### Why? As an example to user another linter than Biome or ESLint. --------- Co-authored-by: Joseph <joseph.chamochumbi@vercel.com> Co-authored-by: Joseph <sephxd1234@gmail.com>
23 lines
477 B
JSON
23 lines
477 B
JSON
{
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "next dev --turbopack",
|
|
"build": "oxlint --type-aware && next build",
|
|
"start": "next start",
|
|
"lint": "oxlint --type-aware"
|
|
},
|
|
"dependencies": {
|
|
"next": "latest",
|
|
"react": "^19.0.0",
|
|
"react-dom": "^19.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^20",
|
|
"@types/react": "^19",
|
|
"@types/react-dom": "^19",
|
|
"oxlint": "1.15.0",
|
|
"oxlint-tsgolint": "0.2.0",
|
|
"typescript": "^5"
|
|
}
|
|
}
|