2026-07-04 14:34:50 +04:00
|
|
|
import {dirname} from 'node:path'
|
|
|
|
|
import {fileURLToPath} from 'node:url'
|
|
|
|
|
import {FlatCompat} from '@eslint/eslintrc'
|
2026-04-16 12:52:51 +04:00
|
|
|
|
2026-07-04 14:34:50 +04:00
|
|
|
const __filename = fileURLToPath(import.meta.url)
|
|
|
|
|
const __dirname = dirname(__filename)
|
2026-04-16 12:52:51 +04:00
|
|
|
|
|
|
|
|
const compat = new FlatCompat({
|
|
|
|
|
baseDirectory: __dirname,
|
2026-07-04 14:34:50 +04:00
|
|
|
})
|
2026-04-16 12:52:51 +04:00
|
|
|
|
|
|
|
|
const eslintConfig = [
|
2026-07-04 14:34:50 +04:00
|
|
|
...compat.extends('next/core-web-vitals'),
|
2026-04-16 12:52:51 +04:00
|
|
|
{
|
|
|
|
|
ignores: [
|
2026-07-04 14:34:50 +04:00
|
|
|
'node_modules/**',
|
|
|
|
|
'.next/**',
|
|
|
|
|
'out/**',
|
|
|
|
|
'build/**',
|
|
|
|
|
'next-env.d.ts',
|
2026-04-16 12:52:51 +04:00
|
|
|
],
|
|
|
|
|
},
|
2026-07-04 14:34:50 +04:00
|
|
|
]
|
2026-04-16 12:52:51 +04:00
|
|
|
|
2026-07-04 14:34:50 +04:00
|
|
|
export default eslintConfig
|