forked from microsoft/onnxjs
-
Notifications
You must be signed in to change notification settings - Fork 1
/
tslint.json
140 lines (138 loc) · 4.19 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
140
{
"rules": {
"insecure-random": true,
"no-banned-terms": true,
"no-cookies": true,
"no-delete-expression": true,
"no-disable-auto-sanitization": true,
"no-document-domain": true,
"no-document-write": true,
"no-eval": true,
"no-exec-script": true,
"no-http-string": [
true,
"http://www.example.com/?.*",
"http://localhost:?.*"
],
"no-inner-html": 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-fs-path": true,
"non-literal-require": true,
"possible-timing-attack": true,
"react-anchor-blank-noopener": true,
"react-iframe-missing-sandbox": true,
"react-no-dangerous-html": true,
"await-promise": true,
"forin": false,
"jquery-deferred-must-complete": true,
"label-position": true,
"match-default-export-name": true,
"mocha-avoid-only": true,
"mocha-no-side-effect-code": false,
"no-any": true,
"no-arg": true,
"no-backbone-get-set-outside-model": true,
"no-bitwise": false,
"no-conditional-assignment": false,
"no-console": false,
"no-constant-condition": true,
"no-control-regex": true,
"no-debugger": true,
"no-duplicate-super": true,
"no-duplicate-switch-case": true,
"no-duplicate-variable": true,
"no-empty": false,
"no-floating-promises": true,
"no-for-in-array": true,
"no-implicit-dependencies": [true, "dev"],
"no-import-side-effect": true,
"no-increment-decrement": false,
"no-invalid-regexp": true,
"no-invalid-template-strings": true,
"no-invalid-this": true,
"no-jquery-raw-elements": true,
"no-misused-new": true,
"no-non-null-assertion": false,
"no-object-literal-type-assertion": true,
"no-parameter-reassignment": false,
"no-reference-import": true,
"no-regex-spaces": true,
"no-sparse-arrays": true,
"no-string-literal": true,
"no-string-throw": true,
"no-submodule-imports": true,
"no-unnecessary-callback-wrapper": true,
"no-unnecessary-initializer": true,
"no-unnecessary-override": true,
"no-unsafe-any": false,
"no-unsafe-finally": true,
"no-unused-expression": false,
"no-use-before-declare": false,
"no-with-statement": true,
"promise-function-async": false,
"promise-must-complete": true,
"radix": true,
"react-this-binding-issue": true,
"react-unused-props-and-state": true,
"restrict-plus-operands": true,
"strict-boolean-expressions": false,
"switch-default": true,
"switch-final-break": true,
"triple-equals": [true, "allow-null-check"],
"use-isnan": true,
"use-named-parameter": true,
"use-simple-attributes": true,
"no-unnecessary-type-assertion": true,
"no-return-await": true,
"array-type": [true, "array-simple"],
"arrow-return-shorthand": true,
"ban-types": [
true,
["Object", "Use {} instead."],
["String", "Use 'string' instead."],
["Number", "Use 'number' instead."],
["Boolean", "Use 'boolean' instead."]
],
"class-name": true,
"curly": true,
"function-constructor": true,
"interface-name": [true, "never-prefix"],
"jsdoc-format": true,
"max-line-length": [true, 120],
"new-parens": true,
"no-angle-bracket-type-assertion": true,
"no-construct": true,
"no-consecutive-blank-lines": true,
"no-default-export": true,
"no-inferrable-types": true,
"no-namespace": [true, "allow-declarations"],
"no-reference": true,
"no-require-imports": true,
"no-var-keyword": true,
"object-literal-shorthand": true,
"only-arrow-functions": [
true,
"allow-declarations",
"allow-named-functions"
],
"prefer-const": true,
"quotemark": [true, "single"],
"semicolon": [true, "always", "ignore-bound-class-methods"],
"unnecessary-bind": true,
"variable-name": [
true,
"check-format",
"ban-keywords",
"allow-leading-underscore",
"allow-trailing-underscore"
]
},
"rulesDirectory": [
"tslint-microsoft-contrib",
"tslint-no-unused-expression-chai"
],
"extends": ["tslint-no-unused-expression-chai"]
}