module.exports = { extends: [ './base.js', 'plugin:react/recommended', 'plugin:react-hooks/recommended', 'plugin:jsx-a11y/recommended', ], plugins: ['react', 'react-hooks', 'jsx-a11y'], env: { browser: true, es2022: true, node: true, }, parserOptions: { ecmaFeatures: { jsx: true, }, }, settings: { react: { version: 'detect', }, }, rules: { // React 'react/react-in-jsx-scope': 'off', // Not needed in React 17+ 'react/prop-types': 'off', // We use TypeScript 'react/jsx-uses-react': 'off', // Not needed in React 17+ 'react/jsx-uses-vars': 'error', // React Hooks 'react-hooks/rules-of-hooks': 'error', 'react-hooks/exhaustive-deps': 'warn', // A11y 'jsx-a11y/alt-text': 'warn', 'jsx-a11y/anchor-has-content': 'warn', }, };