-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
96 lines (96 loc) · 1.83 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
85
86
87
88
89
90
91
92
93
94
95
96
{
"extends": "eslint:recommended",
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"impliedStrict": true
},
"env": {
"es6": true,
"node": true,
"browser": true,
"mocha": true
},
"rules": {
"yoda": 2,
"semi": 2,
"eqeqeq": 2,
"no-var": 2,
"eol-last": 2,
"no-empty": 2,
"camelcase": 2,
"no-console": 1,
"quote-props": 2,
"prefer-const": 2,
"keyword-spacing": 2,
"space-infix-ops": 2,
"consistent-return": 2,
"no-trailing-spaces": 2,
"no-implicit-globals": 2,
"prefer-arrow-callback": 2,
"quotes": [
"error",
"double",
{
"avoidEscape": true,
"allowTemplateLiterals": true
}
],
"complexity": [
"error",
{
"max": 18
}
],
"valid-jsdoc": [
"error",
{
"prefer": {
"return": "returns"
},
"preferType": {
"String": "string",
"Number": "number",
"Boolean": "boolean",
"object": "Object"
},
"requireReturn": false,
"requireParamDescription": false, // Will be true
"requireReturnDescription": false
}
],
"dot-location": [
"error",
"property"
],
"require-jsdoc": [
"error",
{
"require": {
"FunctionDeclaration": false, // Will be true
"MethodDefinition": false, // Will be true
"ClassDeclaration": false // Will be true
}
}
],
"space-in-parens": [
"error",
"never"
],
"space-before-blocks": [
"error",
{
"functions": "always",
"keywords": "always",
"classes": "always"
}
],
"no-multiple-empty-lines": [
"error",
{
"max": 1
}
]
}
}