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