forked from stryker-mutator/stryker-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tslint.json
106 lines (105 loc) · 4.04 KB
/
tslint.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
{
"defaultSeverity": "error",
"extends": [
"tslint:recommended"
],
"rules": {
"array-type": [true, "array"],
"arrow-parens": [true, "ban-single-arg-parens"],
"ban-types": {
"options": [
["Object", "Avoid using the `Object` type. Did you mean `object`?"],
["Boolean", "Avoid using the `Boolean` type. Did you mean `boolean`?"],
["Number", "Avoid using the `Number` type. Did you mean `number`?"],
["String", "Avoid using the `String` type. Did you mean `string`?"],
["Symbol", "Avoid using the `Symbol` type. Did you mean `symbol`?"]
]
},
"class-name": true,
"comment-format": [true, "check-space"],
"completed-docs": false,
"curly": [true, "ignore-same-line"],
"file-name-casing": [ false, "camel-case" ],
"forin": false,
"function-constructor": false,
"indent": [true, "spaces"],
"interface-name": [true, "never-prefix"],
"jsdoc-format": true,
"max-classes-per-file": false,
"max-line-length": false,
"member-ordering": false,
"no-any": false,
"no-bitwise": false,
"no-conditional-assignment": false,
"no-console": false,
"no-consecutive-blank-lines": true,
"no-construct": true,
"no-debugger": true,
"no-duplicate-super": true,
"no-duplicate-switch-case": true,
"no-duplicate-variable": true,
"no-empty": false,
"no-empty-interface": false,
"no-eval": true,
"no-internal-module": true,
"no-invalid-this": false,
"no-irregular-whitespace": true,
"no-namespace": false,
"no-parameter-reassignment": false,
"no-return-await": true,
"no-shadowed-variable": false,
"no-sparse-arrays": true,
"no-string-literal": true,
"no-switch-case-fall-through": true,
"no-trailing-whitespace": true,
"no-unnecessary-class": [true, "allow-constructor-only", "allow-empty-class", "allow-static-only"],
"no-unused-expression": false,
"no-unsafe-any": false,
"no-unsafe-finally": true,
"no-var-keyword": true,
"no-var-requires": false,
"object-literal-sort-keys": [true, "ignore-case"],
"one-line": [true, "check-open-brace", "check-whitespace"],
"only-arrow-functions": [true, "allow-declarations", "allow-named-functions"],
"ordered-imports": true,
"prefer-const": true,
"prefer-method-signature": true,
"prefer-readonly": true,
"quotemark": [true, "single"],
"semicolon": [true, "always"],
"trailing-comma": false,
"triple-equals": [true, "allow-null-check"],
"typedef-whitespace": [
true,
{
"call-signature": "nospace",
"index-signature": "nospace",
"parameter": "nospace",
"property-declaration": "nospace",
"variable-declaration": "nospace"
}
],
"unified-signatures": true,
"variable-name": false,
"whitespace": [true, "check-branch", "check-decl", "check-module", "check-operator", "check-separator", "check-type"],
"naming-convention": [
true,
{ "type": "default", "format": "", "leadingUnderscore": "allow", "trailingUnderscore": "allow" },
{ "type": "variable", "modifiers": ["global", "const"], "format": "" },
{ "type": "variable", "modifiers": ["export", "const"], "format": "" },
{ "type": "functionVariable", "modifiers": ["export", "const"], "format": "" },
{ "type": "parameter", "modifiers": "unused", "leadingUnderscore": "allow" },
{ "type": "member", "modifiers": "private", "leadingUnderscore": "allow" },
{ "type": "member", "modifiers": "protected", "leadingUnderscore": "allow" },
{ "type": "method", "filter": "^toJSON$", "format": null },
{ "type": "property", "modifiers": ["public", "static", "const"], "format": "" },
{ "type": "type", "format": "PascalCase" },
{ "type": "class", "modifiers": "abstract", "prefix": "" },
{ "type": "interface", "prefix": "" },
{ "type": "genericTypeParameter", "prefix": "" },
{ "type": "enumMember", "format": "PascalCase" }
],
"prefer-const-enum": true
},
"rulesDirectory": ["tslint-consistent-codestyle"]
}