-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
54 lines (52 loc) · 1.43 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
{
"root": true,
"parser": "babel-eslint",
"env": {
"node": true,
"es6": true
},
"extends": [ "airbnb-base" ],
"plugins": [ "flowtype", "babel" ],
"parserOptions": {
"ecmaFeatures": {
"arrowFunctions": true,
"blockBindings": true,
"classes": true,
"defaultParams": true,
"destructuring": true,
"forOf": true,
"generators": false,
"modules": true,
"objectLiteralComputedProperties": true,
"objectLiteralDuplicateProperties": false,
"objectLiteralShorthandMethods": true,
"objectLiteralShorthandProperties": true,
"spread": true,
"superInFunctions": true,
"templateStrings": true,
}
},
"rules": {
# Good
"linebreak-style": 0,
"arrow-body-style": 0,
"arrow-parens": [2, "always"],
"block-spacing": [2, "never"],
"import/prefer-default-export": 0,
"indent": [2, 2, {"SwitchCase": 1, "MemberExpression": 1 }],
"no-console": 0,
"no-prototype-builtins": 0,
"object-curly-spacing": [2, "never"],
"no-unused-vars": [ 2, {"args": "none"} ],
"no-use-before-define": [2, "nofunc"],
# New - necessary
// "babel/generator-star-spacing": 1,
"generator-star-spacing": 0,
"import/no-duplicates": 2,
"max-len": 0, # Tyrannosaurus Rekt by flowtype
"no-duplicate-imports": 0,
"import/extensions": 0,
"import/no-extraneous-dependencies": 0,
"import/no-unresolved": 0
}
}