module.exports = { root: true, parser: '@typescript-eslint/parser', parserOptions: { project: 'tsconfig.json', sourceType: 'module', }, plugins: ['@typescript-eslint'], extends: [ 'airbnb-typescript', 'airbnb/hooks', 'plugin:@typescript-eslint/eslint-recommended', 'plugin:@typescript-eslint/recommended', 'plugin:@typescript-eslint/recommended-requiring-type-checking', ], ignorePatterns: ['node_modules/', '*.d.ts'], rules: { 'consistent-return': 'warn', 'max-len': ['warn', 150], 'object-curly-newline': 'off', 'global-require': 'warn', 'no-mixed-operators': 'off', 'react/jsx-props-no-spreading': 'off', 'jsx-a11y/anchor-is-valid': 'off', 'import/prefer-default-export': 'off', '@typescript-eslint/no-use-before-define': 'off', '@typescript-eslint/no-redeclare': 'off', '@typescript-eslint/no-shadow': 'off', 'no-underscore-dangle': 'off', // '@typescript-eslint/ban-ts-ignore': 'warn', 'react/prop-types': 'off', 'react-hooks/exhaustive-deps': 'off', }, settings: { react: { version: '16.13', }, 'import/resolver': { alias: { map: [['@', './src']], extensions: ['.ts', '.tsx', '.js', '.jsx', '.json'], }, }, }, };