import prettier from 'eslint-plugin-prettier/recommended'; import js from '@eslint/js'; import ts from '@typescript-eslint/eslint-plugin'; import tsParser from '@typescript-eslint/parser'; import globals from 'globals'; export default [ { files: ['**/*.ts'], languageOptions: { globals: { ...globals.browser, ...globals.node, }, parser: tsParser, parserOptions: { ecmaVersion: 'latest', sourceType: 'module', project: './tsconfig.json', }, }, plugins: { '@typescript-eslint': ts, }, rules: { ...ts.configs.recommended.rules, '@typescript-eslint/no-unused-vars': 'error', '@typescript-eslint/no-explicit-any': 'warn', }, }, { files: ['**/*.js'], languageOptions: { globals: { ...globals.browser, ...globals.node, }, }, }, js.configs.recommended, prettier, ];