module.exports = { extends: [ 'eslint:recommended', 'plugin:react/recommended', 'plugin:react-hooks/recommended', 'plugin:@typescript-eslint/recommended', 'plugin:import/errors', 'plugin:import/warnings', 'plugin:import/typescript', 'plugin:jsx-a11y/recommended', 'plugin:eslint-comments/recommended', 'plugin:prettier/recommended', ], env: { node: true, }, ignorePatterns: ['/node_modules', '/static/'], parser: '@typescript-eslint/parser', parserOptions: { ecmaVersion: 2020, sourceType: 'module', }, plugins: ['prettier'], rules: { '@typescript-eslint/ban-ts-comment': 'warn', // TODO: Fix these '@typescript-eslint/explicit-module-boundary-types': 'off', '@typescript-eslint/no-empty-interface': 'warn', // TODO: Fix these '@typescript-eslint/no-explicit-any': 'off', '@typescript-eslint/no-unused-vars': ['error'], '@typescript-eslint/no-var-requires': 'off', 'jsx-a11y/anchor-is-valid': 'warn', // TODO: Fix these 'jsx-a11y/click-events-have-key-events': 'warn', // TODO: Fix these 'jsx-a11y/label-has-associated-control': 'warn', // TODO: Fix these 'jsx-a11y/mouse-events-have-key-events': 'warn', // TODO: Fix these 'jsx-a11y/no-onchange': 'warn', // TODO: Fix these 'no-unused-vars': 'warn', // TODO: Fix these 'prefer-const': 'warn', // TODO: Fix these 'react/prop-types': 'off', 'react/jsx-uses-react': 'off', 'react/react-in-jsx-scope': 'off', }, settings: { react: { version: 'detect', }, }, };