forked from rujevic/litewallet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
60 lines (60 loc) · 1.49 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
{
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true
}
},
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"rules": {
"quotes": [1, "single", "avoid-escape"],
"semi": 1,
"no-console": 0,
"no-alert": 0,
"no-unused-vars": 1,
"camelcase": 0,
"no-trailing-spaces": 0,
"eqeqeq": 2,
"no-eval": 2,
"no-fallthrough": 2,
"radix": 2,
"no-shadow": 1,
"strict": 1,
"eol-last": 1,
"func-style": [0, "expression", { "allowArrowFunctions": true }],
"key-spacing": [1, {"beforeColon": false, "afterColon": true}],
"arrow-spacing": [1, {"before": true, "after": true}],
"no-var": 2,
"prefer-const": [1, {"destructuring": "all"}],
"rest-spread-spacing": [2, "never"],
"yield-star-spacing": [2, "after"],
"no-loop-func": 0,
"jsx-quotes": [1, "prefer-double"],
"react/prefer-es6-class": 2,
"react/prefer-stateless-function": 0,
"react/jsx-boolean-value": [2, "always"],
"react/jsx-equals-spacing": [1, "never"],
"react/jsx-key": 2,
"react/jsx-space-before-closing": [1, "always"],
"react/no-did-update-set-state": 0,
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn"
},
"env": {
"browser": true,
"node": true,
"es6": true
},
"plugins": [
"react-hooks"
],
"globals": {
"$": "readonly"
}
}