import eslint from '@eslint/js'; import tseslint from 'typescript-eslint'; import globals from 'globals'; export default tseslint.config( eslint.configs.recommended, ...tseslint.configs.recommended, { languageOptions: { globals: globals.node, parserOptions: { ecmaVersion: 2022, sourceType: 'module', projectService: true, // Use TypeScript's project service for better performance }, }, rules: { '@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_', caughtErrorsIgnorePattern: '^_' }], '@typescript-eslint/no-explicit-any': 'warn', }, }, { ignores: ['dist/', 'node_modules/'], } );