import js from '@eslint/js'; import globals from 'globals'; import tseslint from 'typescript-eslint'; export default [ js.configs.recommended, ...tseslint.configs.recommended, { languageOptions: { ecmaVersion: 2022, sourceType: 'module', globals: { ...globals.browser, ...globals.node, performance: 'readonly', requestAnimationFrame: 'readonly', }, }, files: ['**/*.ts', '**/*.tsx'], rules: { '@typescript-eslint/no-unused-vars': [ 'error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_', }, ], '@typescript-eslint/no-explicit-any': 'warn', 'no-console': 'off', indent: ['error', 2], '@typescript-eslint/explicit-module-boundary-types': 'off', '@typescript-eslint/no-non-null-assertion': 'warn', }, }, { ignores: ['dist/**', 'node_modules/**', '*.config.js'], }, ];