This repository has been archived by the owner on Mar 1, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtslint-wikimedia-eslint-rules-port.json
78 lines (77 loc) · 3.05 KB
/
tslint-wikimedia-eslint-rules-port.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{
"rules": {
"array-bracket-spacing": [ "error", "always" ],
"arrow-parens": "error",
"brace-style": [ "error", "1tbs", { "allowSingleLine": true } ],
"camelcase": [ "error", { "properties": "always" } ],
"comma-dangle": [ "error", "never" ],
"comma-spacing": [ "error", { "before": false, "after": true } ],
"comma-style": [ "error", "last" ],
"computed-property-spacing": [ "error", "always" ],
"curly": [ "error", "all" ],
"dot-location": [ "error", "property" ],
"dot-notation": [ "error" ],
"indent": [ true, "tabs" ],
"key-spacing": [ "error", { "beforeColon": false, "afterColon": true } ],
"linebreak-style": [ "error", "unix" ],
"max-len": [ "warn", {
"code": 100,
"tabWidth": 4,
"ignorePattern": "^// eslint-.+",
"ignoreUrls": true,
"ignoreComments": false,
"ignoreRegExpLiterals": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true
} ],
"new-cap": [ "error", { "newIsCap": true, "capIsNew": false, "properties": true } ],
"new-parens": "error",
"no-bitwise": "error",
"no-constant-condition": [ "error", { "checkLoops": false } ],
"no-empty": [ "error", { "allowEmptyCatch": true } ],
"no-eval": "error",
"no-implicit-coercion": [ "error", { "string": true, "boolean": false, "number": false } ],
"no-unneeded-ternary": [ "error", { "defaultAssignment": false } ],
"object-curly-spacing": [ "error", "always" ],
"one-var": [ "error", "always" ],
"operator-linebreak": [ "error", "after" ],
"quote-props": [ "error", "as-needed", { "keywords": true } ],
"quotes": [ "error", "single", { "avoidEscape": true } ],
"semi": [ "error", "always" ],
"semi-spacing": [ "error", { "before": false, "after": true } ],
"semi-style": [ "error", "last" ],
"space-before-blocks": [ "error", "always" ],
"space-before-function-paren": [ "error", { "anonymous": "always", "named": "never" } ],
"space-in-parens": [ "error", "always", { "exceptions": [ "empty" ] } ],
"space-unary-ops": [ "error", { "words": true, "nonwords": false } ],
"spaced-comment": [ "error", "always", { "exceptions": [ "*", "!" ] } ],
"switch-colon-spacing": [ "error", { "after": true, "before": false } ],
"unicode-bom": [ "error" ],
"valid-jsdoc": [ "error", {
"requireParamDescription": false,
"requireReturnDescription": false,
"requireReturn": false,
"prefer": { "returns": "return" },
"preferType": {
"Boolean": "boolean",
"Number": "number",
"String": "string",
"Undefined": "undefined",
"Null": "null",
"object": "Object",
"array": "Array",
"function": "Function",
"date": "Date",
"regexp": "RegExp",
"error": "Error"
}
} ],
"space-within-parens": [true, 1],
"eofline": true,
"no-misused-new": true,
"no-unused-expression": true,
"no-consecutive-blank-lines": true,
"variable-name": [true, "ban-keywords", "check-format"],
"binary-expression-operand-order": true
}
}