forked from jccguimaraes/project-viewer-plus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
84 lines (84 loc) · 2.02 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
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
{
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"quotes": [
"error",
"single"
],
"semi": ["error", "always"],
"curly": "error",
"object-curly-spacing": ["error", "always"],
"space-unary-ops": [
2, {
"words": true,
"nonwords": false,
"overrides": {
"new": false,
"++": false
}
}],
"spaced-comment": ["error", "always", {
"line": {
"markers": ["/"],
"exceptions": ["-", "+"]
},
"block": {
"markers": ["!"],
"exceptions": ["*"],
"balanced": true
}
}],
"indent": ["error", 2, {
"SwitchCase": 1,
"MemberExpression": 1,
"ArrayExpression": 1,
"ObjectExpression": 1
}],
"newline-per-chained-call": ["error", { "ignoreChainWithDepth": 2 }],
"space-before-function-paren": ["error", {
"anonymous": "always",
"named": "always",
"asyncArrow": "always"
}],
"no-multiple-empty-lines": ["error", {
"max": 1
}],
"max-len": ["warn", 80],
"max-depth": ["error", 2],
"max-lines": ["error", {"max": 350, "skipComments": true}],
"max-statements": ["error", 80],
"eol-last": ["error", "always"],
"linebreak-style": ["error", "unix"],
"brace-style": ["error", "stroustrup"],
"require-jsdoc": ["warn", {
"require": {
"FunctionDeclaration": true,
"MethodDefinition": true,
"ClassDeclaration": true
}
}],
"valid-jsdoc": ["error", {
"prefer": {
"arg": "param",
"return": "returns"
},
"preferType": {
"Boolean": "boolean",
"Number": "number",
"object": "Object",
"String": "string"
},
"requireReturn": false,
"requireReturnType": true,
"requireParamDescription": false,
"requireReturnDescription": false
}]
}
}