-
Notifications
You must be signed in to change notification settings - Fork 145
/
.eslintrc
46 lines (38 loc) · 1.02 KB
/
.eslintrc
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
{
"plugins": [
"react",
"@typescript-eslint"
],
"parser": "@typescript-eslint/parser",
"rules": {
// stops the 'React' was used before it was defined no-use-before-define error for .js files.
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": ["error"],
"react/prop-types": 1,
"react/jsx-handler-names": "off",
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"comma-dangle": [2, {
"arrays": "always-multiline",
"exports": "always-multiline",
"functions": "never",
"imports": "always-multiline",
"objects": "always-multiline"
}],
"space-before-function-paren": [2, {
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}],
"jsx-quotes": [2, "prefer-double"],
"no-var": 2,
"semi": [2, "never"],
"lines-between-class-members": "off"
},
"extends": ["standard", "standard-react"],
"env": {
"browser": true,
"jest": true,
"jasmine": true
}
}