forked from nimiq/keyguard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
54 lines (54 loc) · 1.56 KB
/
.eslintrc.json
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
{
"env": {
"browser": true
},
"extends": "airbnb-base",
"plugins": [
"require-jsdoc-except"
],
"rules": {
"arrow-parens": ["error", "as-needed"],
"class-methods-use-this": ["off"],
"indent": ["error", 4, { "SwitchCase": 1 }],
"max-len": ["error", 120],
"no-param-reassign": ["off"],
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
"no-underscore-dangle": ["off"],
"prefer-destructuring": ["off"],
"no-console": ["off"],
"no-warning-comments": ["warn"],
"no-restricted-syntax": ["error", "ForInStatement", "LabeledStatement", "WithStatement"],
"no-continue": ["off"],
"no-nested-ternary": ["off"],
"require-jsdoc-except/require-jsdoc": ["error", {
"require": {
"FunctionDeclaration": true,
// Class methods witout an existing JSDoc block are ignored
"MethodDefinition": false,
"ClassDeclaration": false,
"ArrowFunctionExpression": true,
"FunctionExpression": true
},
"ignore": ["constructor"]
}],
"valid-jsdoc": ["error", {
"prefer": {
"arg": "param",
"argument": "param",
"class": "constructor",
"return": "returns",
"virtual": "abstract"
},
"preferType": {
"object": "object",
"string": "string",
"number": "number"
},
"requireParamType": true,
"requireReturn": false, // Do not require @return for <void>
"requireReturnType": true,
"requireParamDescription": false,
"requireReturnDescription": false
}]
}
}