-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc
58 lines (58 loc) · 1.55 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
55
56
57
58
{
"env": {
"browser": true,
"es6": true
},
"parser": "babel-eslint",
"plugins": ["flowtype", "unicorn", "tape"],
"extends": [
// "plugin:tape/recommended",
"plugin:import/recommended",
"plugin:flowtype/recommended",
"plugin:unicorn/recommended",
"airbnb-base",
"standard",
"standard-jsdoc"
],
"rules": {
"comma-dangle": [
"error",
{
// always-multiline helps with diffs
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline"
}
],
"unicorn/prefer-add-event-listener": "off", // we _want_ to have only one handler
"tape/no-ignored-test-files": "off", // we have tests all over the code
"require-jsdoc": [
"error",
{
"require": {
"FunctionDeclaration": true,
"MethodDefinition": false,
"ClassDeclaration": true,
"ArrowFunctionExpression": false,
"FunctionExpression": false
}
}
],
"valid-jsdoc": [
"warn",
{
"requireParamType": false,
"requireReturn": false,
"requireReturnType": false,
"requireReturnDescription": false
}
],
"jsdoc/require-param-type": "off",
"jsdoc/require-returns-type": "off",
"jsdoc/require-returns-description": "off",
"no-use-before-define": "off", // we use types before defined
"import/no-cycle": "off", // we cyclic-import types, and Flow detects cycles anyway
"no-param-reassign": "off"
}
}