-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.json
75 lines (75 loc) · 1.36 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
{
"env": {
"browser": false,
"es6": true,
"jest": true,
"node": true
},
"parserOptions": {
"ecmaVersion": 9,
"sourceType": "module"
},
"rules": {
"no-bitwise": 2,
"curly": 2,
"eqeqeq": [2, "allow-null"],
"strict": [
2,
"global"
],
"wrap-iife": [
2,
"any"
],
"indent": "off",
"no-use-before-define": 2,
"max-len": [
2,
{
"code": 100,
"ignoreComments": false,
"ignoreTrailingComments": true,
"ignoreStrings": true
}
],
"no-multi-str": 2,
"new-cap": 2,
"no-caller": 2,
"no-empty": 2,
"no-extra-semi": 2,
"no-irregular-whitespace": 2,
"no-new": 2,
"quotes": [
2,
"single"
],
"no-undef": 2,
"no-unused-vars": [2, {
"ignoreRestSiblings": true
}],
"semi": 2,
"no-var": 2,
"keyword-spacing": 2,
"space-before-blocks": 2,
"eol-last": 1,
"key-spacing": 1,
"no-lonely-if": 1,
"no-multiple-empty-lines": 1,
"no-spaced-func": 1,
"object-curly-spacing": [1, "always"],
"no-const-assign": 2,
"prefer-const": 1,
"prefer-arrow-callback": 1,
"react/display-name": 0
},
"plugins": [
"react"
],
"extends": ["plugin:react/recommended"],
"settings": {
"react": {
"pragma": "React",
"version": "detect"
}
}
}