-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
41 lines (41 loc) · 1.1 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
{
"env": {
"browser": true
},
"extends": "airbnb-base",
"plugins": ["import", "react"],
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true,
"modules": true
}
},
"rules": {
"arrow-parens": [2, "always"],
"class-methods-use-this": [
"error", {"exceptMethods": ["render"]}
],
"comma-dangle": [
"error", {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "never"
}
],
"function-paren-newline": ["error", "consistent"],
"import/extensions": "off",
"no-param-reassign": [2, {"props": false}],
"no-underscore-dangle": [2, {"allow": ["_id"]}],
"no-unused-vars": [2, {"args": "none"}],
"object-curly-newline": ["error", {"consistent": true}],
"object-curly-spacing": [2, "never"],
"object-shorthand": [2, "consistent"],
"react/jsx-uses-react": ["error"],
"react/jsx-uses-vars": ["error"]
}
}