|
| 1 | +module.exports = { |
| 2 | + root: true, |
| 3 | + |
| 4 | + ignorePatterns: [ |
| 5 | + 'node_modules', |
| 6 | + 'coverage', |
| 7 | + 'dist', |
| 8 | + '.github/workflows', |
| 9 | + '.husky', |
| 10 | + 'CHANGELOG.md', |
| 11 | + ], |
| 12 | + |
| 13 | + parserOptions: { |
| 14 | + project: './tsconfig.eslint.json', |
| 15 | + tsconfigRootDir: __dirname, |
| 16 | + extraFileExtensions: ['.mdx', '.md'], |
| 17 | + }, |
| 18 | + |
| 19 | + overrides: [ |
| 20 | + { |
| 21 | + files: ['*.js', '*.ts', '*.jsx', '*.tsx'], |
| 22 | + extends: ['@react-hookz/eslint-config/react'], |
| 23 | + rules: { |
| 24 | + // ToDo: remove below after refactoring |
| 25 | + 'no-underscore-dangle': 'off', |
| 26 | + 'import/no-default-export': 'off', |
| 27 | + 'no-bitwise': 'off', |
| 28 | + '@typescript-eslint/naming-convention': 'off', |
| 29 | + 'react/destructuring-assignment': 'off', |
| 30 | + 'unicorn/consistent-destructuring': 'off', |
| 31 | + 'react/no-unused-class-component-methods': 'off', |
| 32 | + '@typescript-eslint/no-unsafe-call': 'off', |
| 33 | + '@typescript-eslint/no-explicit-any': 'off', |
| 34 | + '@typescript-eslint/no-unsafe-member-access': 'off', |
| 35 | + '@typescript-eslint/no-unsafe-assignment': 'off', |
| 36 | + '@typescript-eslint/no-unsafe-argument': 'off', |
| 37 | + 'no-use-before-define': 'off', |
| 38 | + '@typescript-eslint/no-non-null-assertion': 'off', |
| 39 | + }, |
| 40 | + }, |
| 41 | + { |
| 42 | + files: ['tests/*.js', 'tests/*.ts', 'tests/*.jsx', 'tests/*.tsx'], |
| 43 | + extends: ['@react-hookz/eslint-config/react'], |
| 44 | + rules: { |
| 45 | + // ToDo: remove below after refactoring |
| 46 | + 'no-underscore-dangle': 'off', |
| 47 | + 'import/no-default-export': 'off', |
| 48 | + '@typescript-eslint/naming-convention': 'off', |
| 49 | + '@typescript-eslint/no-unsafe-call': 'off', |
| 50 | + '@typescript-eslint/no-explicit-any': 'off', |
| 51 | + '@typescript-eslint/no-unsafe-member-access': 'off', |
| 52 | + '@typescript-eslint/no-unsafe-assignment': 'off', |
| 53 | + '@typescript-eslint/no-unsafe-argument': 'off', |
| 54 | + 'no-prototype-builtins': 'off', |
| 55 | + '@typescript-eslint/no-unused-vars': 'off', |
| 56 | + 'no-bitwise': 'off', |
| 57 | + 'func-names': 'off', |
| 58 | + '@typescript-eslint/restrict-plus-operands': 'off', |
| 59 | + 'react/jsx-no-bind': 'off', |
| 60 | + 'react/no-unused-state': 'off', |
| 61 | + 'react/destructuring-assignment': 'off', |
| 62 | + 'unicorn/consistent-destructuring': 'off', |
| 63 | + 'react/no-unused-class-component-methods': 'off', |
| 64 | + 'no-use-before-define': 'off', |
| 65 | + '@typescript-eslint/no-non-null-assertion': 'off', |
| 66 | + }, |
| 67 | + }, |
| 68 | + { |
| 69 | + files: ['*.md', '*.mdx'], |
| 70 | + extends: ['@react-hookz/eslint-config/mdx'], |
| 71 | + }, |
| 72 | + ], |
| 73 | +}; |
0 commit comments