Skip to content

Commit 8e2c47c

Browse files
committed
Update oxlint config
1 parent 30222ff commit 8e2c47c

File tree

4 files changed

+1745
-5
lines changed

4 files changed

+1745
-5
lines changed

.oxlintrc.json

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
11
{
2-
"plugins": ["jsx-a11y", "nextjs", "import", "react"]
2+
"$schema": "./node_modules/oxlint/configuration_schema.json",
3+
"plugins": [
4+
"jsx-a11y",
5+
"nextjs",
6+
"import",
7+
"react",
8+
"typescript",
9+
"unicorn",
10+
"oxc"
11+
],
12+
"env": {
13+
"builtin": true
14+
},
15+
"ignorePatterns": [
16+
"node_modules/**",
17+
".next/**",
18+
"out/**",
19+
"build/**",
20+
"next-env.d.ts"
21+
]
322
}

eslint.config.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ const compat = new FlatCompat({
1818

1919
const eslintConfig = ts.config(
2020
js.configs.recommended,
21-
// ...compat.extends(
22-
// 'next/core-web-vitals' /*, 'next/typescript'*/ /*added by ts below*/,
23-
// ),
21+
...compat.extends(
22+
'next/core-web-vitals' /*, 'next/typescript'*/ /*added by ts below*/,
23+
),
2424
{
2525
ignores: [
2626
'node_modules/**',

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
"@types/react": "19.1.10",
5757
"@types/react-dom": "19.1.7",
5858
"eslint": "9.33.0",
59+
"eslint-config-next": "15.5.0",
5960
"eslint-config-prettier": "10.1.8",
6061
"eslint-plugin-oxlint": "1.11.2",
6162
"oxlint": "1.11.2",

0 commit comments

Comments
 (0)