This repository has been archived by the owner on May 28, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathtslint.json
139 lines (132 loc) · 3.97 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
{
"extends": "tslint:recommended",
"linterOptions": {
"exclude": [
"src/bin.js",
"src/bootstrap.js"
]
},
"rules": {
"insecure-random": true,
"no-banned-terms": true,
"no-delete-expression": true,
"no-disable-auto-sanitization": true,
"no-eval": true,
"no-function-constructor-with-string-args": true,
"no-octal-literal": true,
"no-string-based-set-immediate": true,
"no-string-based-set-interval": true,
"no-string-based-set-timeout": true,
"non-literal-require": true,
"possible-timing-attack": true,
"curly": [true, "ignore-same-line"],
"forin": true,
"no-any": true,
"no-arg": true,
"no-arg": true,
"no-bitwise": true,
"no-conditional-assignment": true,
"no-console": true,
"no-constant-condition": true,
"no-construct": true,
"no-control-regex": true,
"no-debugger": true,
"no-duplicate-switch-case": true,
"no-duplicate-variable": true,
"no-empty": true,
"no-for-in-array": false,
"no-invalid-regexp": true,
"no-invalid-this": true,
"no-regex-spaces": true,
"no-sparse-arrays": true,
"no-string-literal": true,
"no-string-throw": true,
"no-this-assignment": true,
"no-unnecessary-bind": true,
"no-unnecessary-class": true,
"no-unnecessary-override": true,
"no-unsafe-finally": true,
"no-unused-expression": true,
"no-use-before-declare": true,
"no-var-keyword": true,
"no-with-statement": true,
"promise-must-complete": true,
"radix": true,
"switch-default": true,
"triple-equals": [true, "allow-null-check"],
"use-isnan": true,
"use-named-parameter": true,
"adjacent-overload-signatures": true,
"member-access": [true, "check-accessor"],
"member-ordering": [true, {
"order": [
"public-static-field",
"protected-static-field",
"private-static-field",
"public-instance-field",
"protected-instance-field",
"private-instance-field",
"public-static-method",
"protected-static-method",
"private-static-method",
"constructor",
"public-instance-method",
"protected-instance-method",
"private-instance-method"
]
}],
"no-empty-interface": true,
"no-inferrable-types": true,
"no-internal-module": true,
"no-namespace": false,
"no-reference": true,
"no-var-requires": false,
"prefer-for-of": true,
"typedef-whitespace": true,
"typedef": false,
"unified-signatures": true,
"cyclomatic-complexity": [true, 10],
"eofline": true,
"indent": [true, "spaces"],
"linebreak-style": [true, "LF"],
"max-classes-per-file": [true, 20],
"max-line-length": [false, 120],
"no-require-imports": false,
"no-trailing-whitespace": true,
"object-literal-sort-keys": true,
"prefer-const": true,
"trailing-comma": [true, { "multiline": "never", "singleline": "never" }],
"array-type": [true, "array"],
"arrow-parens": true,
"class-name": true,
"comment-format": [true, "check-space", "check-uppercase"],
"file-header": [true, "houston/.*.ts"],
"import-spacing": true,
"interface-name": false,
"jsdoc-format": true,
"new-parens": true,
"no-consecutive-blank-lines": [true, 2],
"no-unnecessary-semicolons": true,
"object-literal-key-quotes": [true, "consistent-as-needed"],
"object-literal-shorthand": true,
"one-line": [
true,
"check-catch",
"check-finally",
"check-else",
"check-open-brace",
"check-whitespace"
],
"one-variable-per-declaration": [true, "ignore-for-loop"],
"ordered-imports": true,
"quotemark": [true, "single"],
"semicolon": [true, "never"],
"space-before-function-paren": [true, "always"],
"variable-name": [true, "check-format"],
"naming-convention": [true, "camelCase"]
},
"rulesDirectory": [
"./node_modules/tslint-consistent-codestyle/rules",
"./node_modules/tslint-microsoft-contrib"
]
}