-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
57 lines (57 loc) · 1.48 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
{
"extends": [
"eslint-config-airbnb-base",
],
"plugins": [
"dependencies"
],
"env": {
"browser": true,
"node": true
},
"rules": {
"comma-dangle": ["warn", "always-multiline"],
"consistent-return": "off",
"import/no-extraneous-dependencies": "off",
"import/no-mutable-exports": "off",
"indent": ["error", 4, {"SwitchCase": 1}],
"max-len": ["warn", {
"code": 120,
"ignoreUrls": true,
"ignoreComments": true,
"ignoreTemplateLiterals": true,
"ignorePattern": "LOG\\.(?:trace|debug|info|warn|error|fatal)"
}],
"no-empty-function": "off",
"no-mixed-operators": [
"error",
{
"groups": [
["&", "|", "^", "~", "<<", ">>", ">>>"],
["==", "!=", "===", "!==", ">", ">=", "<", "<="],
["&&", "||"],
["in", "instanceof"]
],
"allowSamePrecedence": true
}
],
"no-restricted-syntax": "off",
"no-param-reassign": ["error", { "props": false }],
"no-plusplus": "off",
"no-underscore-dangle": "off",
"no-use-before-define": ["error", { "functions": false }],
"operator-assignment": "off",
"padded-blocks": "off",
"valid-jsdoc": "error",
"yield-star-spacing": ["error", "after"],
"dependencies/case-sensitive": 1,
"dependencies/no-cycles": 1,
"dependencies/no-unresolved": 1,
"dependencies/require-json-ext": 1
},
"settings": {
"flowtype": {
"onlyFilesWithFlowAnnotation": true
}
}
}