import {dirname} from 'path' import {fileURLToPath} from 'url' import {FlatCompat} from '@eslint/eslintrc' import stylistic from '@stylistic/eslint-plugin' const __filename = fileURLToPath(import.meta.url) const __dirname = dirname(__filename) const compat = new FlatCompat({ baseDirectory: __dirname, }) // noinspection SpellCheckingInspection const eslintConfig = [ ...compat.extends('next/core-web-vitals', 'next/typescript'), stylistic.configs.recommended, { rules: { '@stylistic/object-curly-spacing': ['error', 'never'], '@stylistic/jsx-tag-spacing': ['error', { beforeSelfClosing: 'never', }], '@typescript-eslint/no-empty-object-type': 'off', '@typescript-eslint/no-unused-vars': 'off', }, }, ] export default eslintConfig