|
1 | | -import { dirname } from "path"; |
2 | | -import { fileURLToPath } from "url"; |
3 | | -import { FlatCompat } from "@eslint/eslintrc"; |
| 1 | +import { dirname } from 'path' |
| 2 | +import { fileURLToPath } from 'url' |
| 3 | +import { FlatCompat } from '@eslint/eslintrc' |
4 | 4 |
|
5 | | -const __filename = fileURLToPath(import.meta.url); |
6 | | -const __dirname = dirname(__filename); |
| 5 | +const __filename = fileURLToPath(import.meta.url) |
| 6 | +const __dirname = dirname(__filename) |
| 7 | +const compat = new FlatCompat({ baseDirectory: __dirname }) |
7 | 8 |
|
8 | | -const compat = new FlatCompat({ |
9 | | - baseDirectory: __dirname, |
10 | | -}); |
11 | | - |
12 | | -const eslintConfig = [ |
13 | | - ...compat.extends("next/core-web-vitals", "next/typescript"), |
| 9 | +const config = [ |
| 10 | + ...compat.extends('next/core-web-vitals'), |
14 | 11 | { |
15 | 12 | rules: { |
16 | 13 | 'react/no-unescaped-entities': 'warn', |
17 | | - '@typescript-eslint/no-explicit-any': 'warn', |
18 | | - '@typescript-eslint/no-empty-object-type': 'warn', |
19 | 14 | 'react-hooks/rules-of-hooks': 'warn', |
20 | | - '@next/next/no-img-element': 'warn' |
21 | | - } |
22 | | - } |
23 | | -]; |
| 15 | + '@next/next/no-img-element': 'warn', |
| 16 | + 'jsx-a11y/anchor-is-valid': 'warn', |
| 17 | + }, |
| 18 | + }, |
| 19 | +] |
24 | 20 |
|
25 | | -export default eslintConfig; |
| 21 | +export default config |
0 commit comments