forked from nyurik/wikidata-query-gui
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.jscsrc
65 lines (59 loc) · 1.39 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
60
61
62
63
64
65
{
// https://github.com/jscs-dev/node-jscs/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",
"licence": "some",
"license": "some",
"note:": "some",
"option": "some",
"see": "some",
"todo": "some",
"triggers": "some"
}
},
//"enforceExistence": "exceptExports",
"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"
],
//TODO: Fix the this rules
"disallowQuotedKeysInObjects": false,
"requireSpaceAfterLineComment": false,
"excludeFiles": [ "node_modules/**", "vendor/**", "wikibase/codemirror/addon/**", "wikibase/tests/**", "polestar/**"]
}