Files
test-assignment/eslint.config.mjs
T

30 lines
698 B
JavaScript

import tseslint from 'typescript-eslint';
import hooks from 'eslint-plugin-react-hooks';
export default tseslint.config(
{
ignores: [
'**/dist/**',
'**/node_modules/**',
'**/generated/**',
'**/.turbo/**',
'playwright-report/**',
'test-results/**',
],
},
...tseslint.configs.recommended,
{
files: ['**/*.{ts,tsx}'],
rules: {
'@typescript-eslint/no-unused-vars': [
'error',
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
],
},
},
{
files: ['**/*.tsx'],
plugins: { 'react-hooks': hooks },
rules: { 'react-hooks/rules-of-hooks': 'error', 'react-hooks/exhaustive-deps': 'warn' },
},
);