-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
46 lines (46 loc) · 1015 Bytes
/
.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
{
"parser": "babel-eslint",
"env": {
"browser": true,
"es6": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"standard",
"plugin:jsx-control-statements/recommended"
],
"parserOptions": {
"ecmaversion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true
}
},
"plugins": [
"react",
"promise",
"jsx-control-statements"
],
"settings": {
"react": {
"version": "16.5"
}
},
"rules": {
"no-console": [2, {"allow": ["warn", "error"]}],
"indent": [2, 2],
"comma-dangle": [2, "never"],
"linebreak-style": [2, "unix"],
"quotes": [2, "single"],
"semi": [2, "never"],
"no-extra-semi": 2,
"space-before-function-paren": ["error", "never"],
"react/jsx-no-literals": 2,
"react/jsx-no-undef": [2, { "allowGlobals": true }],
"promise/always-return": 2,
"promise/no-return-wrap": 2,
"promise/param-names": 2
}
}