module.exports = {
  env: {
    browser: true,
    es2022: true,
    node: true
  },
  extends: ['../../.eslintrc.js', 'plugin:react/recommended'],
  parserOptions: {
    ecmaFeatures: {
      jsx: true,
      globalReturn: false
    },
    ecmaVersion: 13,
    sourceType: 'module'
  },
  plugins: ['@typescript-eslint', 'react', 'react-hooks'],
  rules: {
    'react-hooks/rules-of-hooks': 'error',
    'react-hooks/exhaustive-deps': 'warn',
    'react/display-name': 'off',
    'react/jsx-uses-react': 1,
    'react/jsx-uses-vars': 1,
    '@typescript-eslint/no-var-requires': 'off'
  },
  globals: {
    JSX: true
  }
};
