-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc
48 lines (48 loc) · 1.19 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
{
"extends": "airbnb",
"parser": "babel-eslint",
"ecmaFeatures": {
"classes": true,
"jsx": true
},
"globals": {
"web3": true
},
"env": {
"browser": true,
"node": true
},
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true
}
},
"plugins": [
"react"
],
"rules": {
"no-undef": ["error", { "typeof": false }],
"no-underscore-dangle": ["warn", { "allowAfterThis": true }],
"no-useless-constructor": "off",
"no-confusing-arrow": "warn",
"no-param-reassign": "warn",
"no-return-assign": "warn",
"eqeqeq": "warn",
"max-len": "warn",
"quote-props": "warn",
"no-unused-vars": "warn",
"prefer-const": "warn",
"no-nested-ternary": "warn",
"linebreak-style": "off",
"comma-dangle": ["warn", {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "ignore"
}],
"import/prefer-default-export": "off",
"react/jsx-filename-extension": ["warn", { "extensions": [".js", ".jsx"] }],
"react/prefer-stateless-function": ["error", { "ignorePureComponents": true }]
}
}