31 lines
647 B
JavaScript
31 lines
647 B
JavaScript
import { dirname } from 'node:path'
|
|
import { fileURLToPath } from 'node:url'
|
|
import { FlatCompat } from '@eslint/eslintrc'
|
|
import { defineConfig } from 'eslint/config'
|
|
|
|
const __filename = fileURLToPath(import.meta.url)
|
|
const __dirname = dirname(__filename)
|
|
|
|
const compat = new FlatCompat({
|
|
baseDirectory: __dirname,
|
|
})
|
|
|
|
export default defineConfig([
|
|
{
|
|
ignores: [
|
|
'node_modules/**',
|
|
'.next/**',
|
|
'out/**',
|
|
'build/**',
|
|
'next-env.d.ts',
|
|
'src/generated/**',
|
|
],
|
|
},
|
|
...compat.extends('next/core-web-vitals', 'next/typescript'),
|
|
{
|
|
rules: {
|
|
'@next/next/no-img-element': 'off',
|
|
},
|
|
},
|
|
])
|