import eslint from '@eslint/js'; import reactHooks from 'eslint-plugin-react-hooks'; import tseslint from 'typescript-eslint'; export default tseslint.config( { ignores: ['**/node_modules/**', '**/dist/**', '**/build/**', '**/coverage/**'], }, eslint.configs.recommended, ...tseslint.configs.recommended, { files: ['web/**/*.{ts,tsx}', 'scripts/lint-fixtures/**/*.tsx'], plugins: { 'react-hooks': reactHooks }, rules: { 'react-hooks/exhaustive-deps': 'warn', 'react-hooks/rules-of-hooks': 'error', }, }, { files: ['server/**/*.{ts,tsx}', 'web/**/*.{ts,tsx}'], rules: { '@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }], }, }, );