module.exports = { root: true, env: { browser: true, es2021: true, }, extends: [ 'eslint:recommended', 'plugin:react/recommended', 'plugin:react-hooks/recommended', 'plugin:@typescript-eslint/recommended', ], parser: '@typescript-eslint/parser', parserOptions: { ecmaVersion: 'latest', sourceType: 'module', ecmaFeatures: { jsx: true, }, }, plugins: ['react', 'react-hooks', '@typescript-eslint'], settings: { react: { version: 'detect', }, }, rules: { 'react/react-in-jsx-scope': 'off', 'react/prop-types': 'off', // Using TypeScript for prop validation '@typescript-eslint/no-explicit-any': 'warn', '@typescript-eslint/no-unused-vars': [ 'warn', { argsIgnorePattern: '^_', varsIgnorePattern: '^_', }, ], 'react-hooks/exhaustive-deps': 'warn', }, };