module.exports = { root: true, parser: '@typescript-eslint/parser', extends: [ 'standard-jsx', 'eslint:recommended', 'plugin:react/recommended', 'plugin:prettier/recommended', 'prettier', 'prettier/react', 'plugin:@typescript-eslint/recommended' ], plugins: ['react', 'react-hooks', 'prettier', '@typescript-eslint'], settings: { react: { version: 'detect' } }, env: { es6: true, node: true, browser: true, jest: true }, rules: { 'prettier/prettier': 'error', 'react-hooks/rules-of-hooks': 'error', 'react-hooks/exhaustive-deps': 'warn', '@typescript-eslint/no-unused-vars': [ 'error', { argsIgnorePattern: '^_', ignoreRestSiblings: true } ] }, overrides: [ { files: ['**/*.jsx', '**/*.js'], rules: { '@typescript-eslint/camelcase': 'off', '@typescript-eslint/no-use-before-define': 'off', '@typescript-eslint/explicit-function-return-type': 'off', 'react/jsx-handler-names': 'warn' } }, { files: ['**/*.tsx'], rules: { 'react/prop-types': 'off' } }, { files: ['src/**/*test.js'], rules: { 'react/display-name': 'off', 'react/prop-types': 'off', 'react/no-find-dom-node': 'off' } } ] };