-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
52 lines (52 loc) · 1.24 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
{
"extends": "airbnb-base",
"rules": {
"arrow-body-style": ["warn"],
"class-methods-use-this": ["error",
{
"exceptMethods": [
"shouldComponentUpdate",
"render"
]
}
],
"func-names": ["error", "never"],
"function-paren-newline": ["off"],
"import/no-named-as-default": ["off"],
"no-nested-ternary": ["off"],
"no-plusplus": ["off"],
"no-underscore-dangle": ["off"],
"no-unused-vars": ["off"],
"no-use-before-define": ["off"],
"object-shorthand": ["off"],
"object-curly-newline": ["off"],
"import/prefer-default-export": ["off"],
"prefer-destructuring": ["off"],
"indent": [ "error", 2, { "SwitchCase": 1 } ],
"no-empty": ["error", { "allowEmptyCatch": true }],
"max-len": ["error", { "code": 140, "tabWidth": 4 }]
},
"env": {
"browser": true,
"es6": true,
"jasmine": true
},
"globals": {
"describe": true,
"HttpError": true,
"it": true,
"module": true,
"moment": true,
"require": true
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"modules": true,
"experimentalObjectRestSpread": true
}
}
}