This repository has been archived by the owner on Sep 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
61 lines (60 loc) · 1.74 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{
"extends": ["airbnb"],
"globals": {
"React": true,
"ReactDOM": true,
"classNames": true,
"document": true,
"$": true,
"urlEnv": true,
"window": true,
"navigator": true,
},
"env": {
"es6": true
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true
}
},
"rules": {
"indent": ["error", 4],
"react/jsx-boolean-value": [0],
"react/no-did-mount-set-state": [2],
"react/no-did-update-set-state": [2],
"react/sort-comp": [1],
"react/jsx-no-bind": [0],
"react/no-danger": [0],
"react/prefer-stateless-function": [0],
"react/jsx-indent": [0],
"react/jsx-filename-extension": ["error", { "extensions": [".js"] }],
"react/forbid-prop-types": [0],
"react/no-unused-prop-types": [0],
"react/jsx-indent-props": ["error", 4],
"arrow-body-style": [0],
"object-curly-spacing": [0],
"prefer-template": [0],
"max-len": [0],
"no-case-declarations": [0],
"object-shorthand": [0],
"no-underscore-dangle": [0],
"no-restricted-syntax": [0],
"id-length": [0],
"func-names": [0],
"no-param-reassign": [0],
"spaced-comment": [0],
"prefer-const": [1],
"no-use-before-define": [1],
"no-unused-vars": ["error", { "varsIgnorePattern": "^Global" }],
"no-shadow": [0],
"no-new": [0],
"comma-dangle": [0],
"no-console": [0],
"global-require": [0],
"no-bitwise": ["error", { "allow": ["~"] }]
}
}