import js from '@eslint/js'; import { defineConfig } from 'eslint/config'; import globals from 'globals'; import tsParser from '@typescript-eslint/parser'; import tsPlugin from '@typescript-eslint/eslint-plugin'; export default defineConfig([ { ignores: ['main.js', 'node_modules/**', 'src/**/*.js', 'tests/**'], }, { files: ['**/*.ts'], languageOptions: { parser: tsParser, parserOptions: { sourceType: 'module', project: './tsconfig.json', ecmaVersion: 'latest', }, globals: { ...globals.browser, ...globals.node, }, }, plugins: { '@typescript-eslint': tsPlugin, }, rules: { ...js.configs.recommended.rules, ...tsPlugin.configs.recommended.rules, '@typescript-eslint/no-explicit-any': 'warn', }, }, ]);