import js from '@eslint/js' import tsPlugin from '@typescript-eslint/eslint-plugin' import tsParser from '@typescript-eslint/parser' import reactPlugin from 'eslint-plugin-react' import reactHooksPlugin from 'eslint-plugin-react-hooks' /** @type {import('eslint').Linter.Config[]} */ export default [ js.configs.recommended, { files: ['**/*.{ts,tsx}'], languageOptions: { parser: tsParser, parserOptions: { ecmaVersion: 'latest', sourceType: 'module', ecmaFeatures: { jsx: true }, }, }, plugins: { '@typescript-eslint': tsPlugin, react: reactPlugin, 'react-hooks': reactHooksPlugin, }, rules: { ...tsPlugin.configs.recommended.rules, ...reactPlugin.configs.recommended.rules, ...reactHooksPlugin.configs.recommended.rules, '@typescript-eslint/no-explicit-any': 'error', '@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }], 'react/react-in-jsx-scope': 'off', }, settings: { react: { version: 'detect' }, }, }, { ignores: ['node_modules/**', 'dist/**', 'build/**', '.expo/**'], }, ]