import eslint from '@eslint/js' import tseslint from 'typescript-eslint' import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended' import globals from 'globals' /** @type {import('eslint').Config} */ export default tseslint.config( eslint.configs.recommended, tseslint.configs.recommended, eslintPluginPrettierRecommended, { ignores: ['dist', 'spine-ts'], }, { files: ['**/*.{js,jsx}', '**/*.{ts,tsx}'], languageOptions: { ecmaVersion: 2022, globals: { ...globals.browser, }, }, rules: { 'no-unused-vars': ['error', { argsIgnorePattern: '^_' }], '@typescript-eslint/no-unused-vars': [ 'error', { argsIgnorePattern: '^_' }, ], }, } )