diff options
| author | Leo Goetz <dev@leogtz.de> | 2026-05-08 15:43:50 +0200 |
|---|---|---|
| committer | Leo Goetz <dev@leogtz.de> | 2026-05-08 15:43:50 +0200 |
| commit | b2bd3587bfd42ec8efdab12f090996f600720c0d (patch) | |
| tree | fbb55b716b592032ebbdb5448bfba0b49a609d17 /eslint.config.mjs | |
Diffstat (limited to 'eslint.config.mjs')
| -rw-r--r-- | eslint.config.mjs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/eslint.config.mjs b/eslint.config.mjs new file mode 100644 index 0000000..515afb4 --- /dev/null +++ b/eslint.config.mjs @@ -0,0 +1,22 @@ +import { dirname } from "path"; +import { fileURLToPath } from "url"; +import { FlatCompat } from "@eslint/eslintrc"; + +const __filename = fileURLToPath(import.meta.url); +const __dirname = dirname(__filename); + +const compat = new FlatCompat({ + baseDirectory: __dirname, +}); + +const eslintConfig = [ + ...compat.config({ + extends: ["next"], + rules: { + "next/core-web-vitals": 0, + "next/typescript": "off", + }, + }), +]; + +export default eslintConfig; |
