Skip to content

Commit fec463c

Browse files
committed
feat: different eslint
1 parent 9a59f39 commit fec463c

File tree

2 files changed

+27
-11
lines changed

2 files changed

+27
-11
lines changed

.eslintrc.json

-11
This file was deleted.

eslint.config.mjs

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import { dirname } from "path";
2+
import { fileURLToPath } from "url";
3+
import { FlatCompat } from "@eslint/eslintrc";
4+
5+
const __filename = fileURLToPath(import.meta.url);
6+
const __dirname = dirname(__filename);
7+
8+
const compat = new FlatCompat({
9+
baseDirectory: __dirname,
10+
});
11+
12+
const eslintConfig = [
13+
...compat.config({
14+
extends: ["next/core-web-vitals", "next/typescript"],
15+
rules: {
16+
"react/no-unescaped-entities": "off",
17+
"@typescript-eslint/no-explicit-any": "off",
18+
"@typescript-eslint/no-unused-vars": "off",
19+
"react/display-name": "off",
20+
"@typescript-eslint/ban-ts-comment": "off",
21+
"@typescript-eslint/no-empty-object-type": "off",
22+
"@typescript-eslint/prefer-as-const": "off",
23+
},
24+
}),
25+
];
26+
27+
export default eslintConfig;

0 commit comments

Comments
 (0)