Skip to content

Commit 9188c20

Browse files
committed
Add eslint-plugin-oxlint with recommended config
1 parent 9328784 commit 9188c20

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

eslint.config.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { dirname } from 'path';
66
import { fileURLToPath } from 'url';
77
import { FlatCompat } from '@eslint/eslintrc';
88
import eslintConfigPrettier from 'eslint-config-prettier/flat';
9+
import oxlint from 'eslint-plugin-oxlint';
910
// import pluginQuery from '@tanstack/eslint-plugin-query';
1011

1112
const __filename = fileURLToPath(import.meta.url);
@@ -72,6 +73,7 @@ const eslintConfig = ts.config(
7273
// ],
7374
},
7475
},
76+
...oxlint.configs['flat/recommended'], // oxlint should be the last one
7577
);
7678

7779
export default eslintConfig;

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"dev:sw": "next dev --experimental-https",
1212
"build": "next build",
1313
"start": "next start",
14-
"lint": "next lint",
14+
"lint": "pnpm exec oxlint && next lint",
1515
"lint:fix": "next lint --fix",
1616
"fmt": "prettier --check .",
1717
"fmt:fix": "prettier --write .",
@@ -58,6 +58,7 @@
5858
"eslint": "9.33.0",
5959
"eslint-config-next": "15.4.6",
6060
"eslint-config-prettier": "10.1.8",
61+
"eslint-plugin-oxlint": "1.11.2",
6162
"prettier": "3.6.2",
6263
"prettier-plugin-tailwindcss": "0.6.14",
6364
"tailwindcss": "4.1.11",

pnpm-lock.yaml

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)