import eslint from '@eslint/js' import tseslint from '@typescript-eslint/eslint-plugin' import tsparser from '@typescript-eslint/parser' import globals from 'globals' export default [ { ignores: [ '**/.next/**', '**/.turbo/**', '**/coverage/**', '**/dist/**', '**/node_modules/**', 'scripts/**', ], }, eslint.configs.recommended, { files: ['**/*.{ts,tsx}'], languageOptions: { parser: tsparser, parserOptions: { ecmaFeatures: { jsx: true }, sourceType: 'module' }, globals: { ...globals.browser, ...globals.node }, }, plugins: { '@typescript-eslint': tseslint }, rules: { ...tseslint.configs.recommended.rules, '@typescript-eslint/consistent-type-imports': 'error', '@typescript-eslint/no-explicit-any': 'error', }, }, ]