forked from JeroenDeDauw/Wikibase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.jscsrc
59 lines (54 loc) · 1.19 KB
/
.jscsrc
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
{
// https://github.com/wikimedia/jscs-preset-wikimedia/blob/master/presets/wikimedia.json
"preset": "wikimedia",
// ----
// Rules from wikimedia preset we don't yet? follow
"validateIndentation": null,
"requireMultipleVarDecl": null,
"disallowDanglingUnderscores": null,
"requireSpacesInsideBrackets": null,
"requireVarDeclFirst": null,
"jsDoc": {
// what we don't yet follow is commented out
"checkAnnotations": {
"preset": "jsduck5",
"extra": {
"TODO:": "some",
"license": "some",
"note:": "some",
"option": "some",
"see": "some",
"todo": "some",
"triggers": "some"
}
},
"checkParamNames": true,
"requireParamTypes": true,
"checkRedundantParams": true,
//"checkReturnTypes": true,
"checkRedundantReturns": true,
"requireReturnTypes": true,
"checkTypes": "strictNativeCase",
"checkRedundantAccess": true,
"requireNewlineAfterDescription": true
},
// ----
// Own rules
// not required for function
"requireSpaceAfterKeywords": [
"do",
"for",
"if",
"else",
"switch",
"case",
"try",
"catch",
"void",
"while",
"with",
"return",
"typeof"
],
"excludeFiles": [ "node_modules/**", "vendor/**", "extensions/**" ]
}