-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
115 lines (115 loc) · 3.36 KB
/
.eslintrc.js
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
module.exports = {
"extends": [
"airbnb-base",
"plugin:flowtype/recommended"
],
"plugins": [
"flowtype",
"flowtype-errors"
],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"blockBindings": true,
"jsx": false
}
},
"env": {
"browser": true,
"node": true,
"mocha": true,
"es6": true
},
"rules": {
"arrow-body-style": 0,
"array-bracket-spacing": [0, "always"],
"camelcase": [1, {
"properties": "never"
}],
"flowtype/boolean-style": [2, "boolean"],
"flowtype/define-flow-type": 1,
"flowtype/delimiter-dangle": [1, "always"],
"flowtype/generic-spacing": [2, "never"],
"flowtype/no-primitive-constructor-types": 2,
"flowtype/no-weak-types": 1,
"flowtype/object-type-delimiter": [2, "comma"],
"flowtype/require-parameter-type": 0,
"flowtype/require-return-type": 0,
"flowtype/require-valid-file-annotation": 0,
"flowtype/semi": [2, "always"],
"flowtype/space-after-type-colon": [2, "always"],
"flowtype/space-before-generic-bracket": [2, "never"],
"flowtype/space-before-type-colon": [2, "never"],
"flowtype/union-intersection-spacing": [2, "always"],
"flowtype/use-flow-type": 2,
"flowtype/valid-syntax": 2,
"flowtype-errors/show-errors": 2,
"no-tabs": 0,
"comma-dangle": [1, "always-multiline"],
"consistent-return": 1,
"func-names": 0,
"function-paren-newline": 0,
"global-require": 0,
"indent": [2, "tab", {"SwitchCase": 1}],
"max-len": 0,
"new-cap": [1, {
"capIsNewExceptions": [
"Array",
"Boolean",
"Date",
"Error",
"Function",
"Number",
"Object",
"RegExp",
"String",
"Symbol",
"List",
"Map",
"OrderedMap"
]
}],
"no-else-return": 1,
"no-mixed-spaces-and-tabs": 1,
"no-multiple-empty-lines": [1, {
max: 10
}],
"no-param-reassign": 0,
"no-plusplus": 0,
"no-tabs": 0,
"no-trailing-spaces": [2, {
"skipBlankLines": true
}],
"no-underscore-dangle": 0,
"no-unused-vars": [2, {
"vars": "all",
"args": "none"
}],
"no-use-before-define": [2, "nofunc"],
"no-var": 1,
"one-var": [1, "never"],
"object-shorthand": 0,
"padded-blocks": 0,
"prefer-arrow-callback": 0,
"prefer-const": 1,
"prefer-template": 0,
"quotes": [1, "single", "avoid-escape"],
"radix": 0,
"space-before-function-paren": [1, "never"],
"import/no-extraneous-dependencies": 0,
"import/extensions": 0,
"import/first": 0,
"import/no-unresolved": [2, {
ignore: [
"src.*",
"dist.*",
"entries.*",
],
}],
"import/extensions": 0,
"import/no-extraneous-dependencies": 0,
"no-duplicate-imports": 0,
}
};