-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
41 lines (38 loc) · 1.15 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
{
"extends": ["airbnb", "plugin:import/errors"],
"parser": "babel-eslint",
"plugins": [
"flowtype",
"babel",
"import"
],
"env": {
"browser": true,
"es6": true,
},
"rules": {
"comma-dangle": [1, "always-multiline"],
"semi": [2, "never"],
"react/jsx-filename-extension": 0,
"no-use-before-define": ["error", { "functions": false }],
"no-useless-constructor": 0,
// https://github.com/gajus/eslint-plugin-flowtype
"flowtype/define-flow-type": 1,
"flowtype/valid-syntax": 1,
"flowtype/use-flow-type": 1,
"flowtype/space-after-type-colon": [1, "always"],
"flowtype/space-before-type-colon": [1, "never"],
// https://github.com/eslint/eslint/issues/6274#issuecomment-228420692
"generator-star-spacing": 0,
// https://github.com/babel/eslint-plugin-babel
"babel/generator-star-spacing": 1,
// "babel/new-cap": 1,
// "babel/array-bracket-spacing": 1,
// "babel/object-curly-spacing": 1,
// "babel/object-shorthand": 1,
// "babel/arrow-parens": 1,
// "babel/no-await-in-loop": 1,
// "babel/flow-object-type": 1,
// "babel/func-params-comma-dangle": 1
}
}