import {
  importConfig,
  rulesConfig,
  typescriptTypeCheckedConfig,
  unicornConfig,
  workspacesConfig,
} from '@ariestools/eslint-config-flat'
import type { Linter } from 'eslint'

const config: Linter.Config[] = [
  { ignores: ['.yarn', 'dist', 'build', 'coverage', 'docs', '**/dist', '**/build', '**/docs'] },
  unicornConfig,
  workspacesConfig,
  rulesConfig,
  ...typescriptTypeCheckedConfig,
  ...importConfig,
  { rules: { 'import-x/no-cycle': ['warn', { maxDepth: 5 }] } },
]

export default config
