-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
122 lines (122 loc) · 3.04 KB
/
.eslintrc.json
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
{
"extends": [
"airbnb",
"airbnb-typescript",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"prettier",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:unicorn/recommended",
"plugin:prettier/recommended"
],
"plugins": [
"prettier",
"import",
"jest"
],
"env": {
"node": true,
"es6": true,
"browser": true,
"jest": true
},
"settings": {
"react": {
"pragma": "React",
"version": "detect"
}
},
"parserOptions": {
"project": ["./tsconfig.json", "./modules/*/tsconfig.json"]
},
"ignorePatterns": [
"dist",
"node_modules",
"examples",
"scripts"
],
"rules": {
"@typescript-eslint/unbound-method": "off",
"@typescript-eslint/no-misused-promises": "off",
"unicorn/filename-case": "off",
"import/prefer-default-export": "off",
"unicorn/no-null": "off",
"unicorn/prefer-query-selector": "off",
"@typescript-eslint/no-use-before-define": "off",
"unicorn/prevent-abbreviations": "off",
"import/no-extraneous-dependencies": "off",
"no-void": "off",
"jsx-a11y/accessible-emoji": "off",
"jsx-a11y/label-has-associated-control": "off",
"no-param-reassign": "off",
"consistent-return": "off",
"spaced-comment": "off",
"react/jsx-props-no-spreading": "off",
"no-underscore-dangle": "off",
"unicorn/no-array-for-each": "off",
"no-console": "off",
"@typescript-eslint/lines-between-class-members": "off",
"class-methods-use-this": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"default-case": "off",
"global-require": "off",
"no-nested-ternary": "off",
"no-use-before-define": "off",
"unicorn/no-process-exit": "off",
"@typescript-eslint/restrict-template-expressions": "off",
"@typescript-eslint/no-unsafe-argument": "off",
"max-classes-per-file": ["warn", 3],
"import/order": "warn",
"prettier/prettier": "warn",
"no-debugger": "warn"
},
"overrides": [
{
"files": [
"*.tsx"
],
"extends": [
"plugin:react-hooks/recommended",
"react-app",
"react-app/jest"
],
"rules": {
"react/prop-types": "off",
"react/require-default-props": "off",
"react/function-component-definition": "off"
}
},
{
"files": [
"*.{ts,tsx}"
],
"rules": {
}
},
{
"files": [
"**/__tests__/**.ts"
],
"rules": {
"@typescript-eslint/unbound-method": "off",
"prettier/prettier": "warn",
"@typescript-eslint/no-unsafe-return": "off",
"no-console": "off"
}
},
{
"files": [
"**/__tests__/**.tsx"
],
"rules": {
"react/prop-types": "off",
"@typescript-eslint/unbound-method": "off",
"@typescript-eslint/no-unsafe-return": "off",
"prettier/prettier": "warn",
"no-console": "off",
"react/button-has-type": "off"
}
}
]
}