import js from '@eslint/js'; import prettierConfig from 'eslint-config-prettier'; import globals from 'globals'; import tseslint from 'typescript-eslint'; export default tseslint.config( { ignores: ['node_modules/**', 'dist/**', 'public/**'], }, js.configs.recommended, ...tseslint.configs.recommended, prettierConfig, { files: ['**/*.ts'], languageOptions: { ecmaVersion: 2022, sourceType: 'module', globals: { ...globals.browser, }, }, rules: { '@typescript-eslint/no-explicit-any': 'error', '@typescript-eslint/no-empty-function': 'off', '@typescript-eslint/no-non-null-assertion': 'error', '@typescript-eslint/ban-ts-comment': 'error', 'prefer-const': 'error', }, } );