Skip to content

Commit b342e89

Browse files
add newer eslint config
1 parent 11a043b commit b342e89

File tree

4 files changed

+29
-6
lines changed

4 files changed

+29
-6
lines changed

.eslintrc.json

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

eslint.config.mjs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import { defineConfig } from "eslint/config";
2+
import path from "node:path";
3+
import { fileURLToPath } from "node:url";
4+
import js from "@eslint/js";
5+
import { FlatCompat } from "@eslint/eslintrc";
6+
7+
const __filename = fileURLToPath(import.meta.url);
8+
const __dirname = path.dirname(__filename);
9+
const compat = new FlatCompat({
10+
baseDirectory: __dirname,
11+
recommendedConfig: js.configs.recommended,
12+
allConfig: js.configs.all
13+
});
14+
15+
export default defineConfig([{
16+
extends: compat.extends("next/core-web-vitals"),
17+
18+
rules: {
19+
"@next/next/no-img-element": 0,
20+
},
21+
}]);

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636
"zod": "^4.0.14"
3737
},
3838
"devDependencies": {
39+
"@eslint/eslintrc": "^3.3.1",
40+
"@eslint/js": "^9.32.0",
3941
"@types/node": "^24.1.0",
4042
"@types/react": "19.1.9",
4143
"@types/twuni__emojify": "^1.0.2",

pnpm-lock.yaml

Lines changed: 6 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)