Skip to content

Commit 222bbda

Browse files
fix(tsconfig): extend from @tsconfig/recommended
1 parent 4e76b53 commit 222bbda

31 files changed

+343
-299
lines changed

.github/linters/tsconfig.json

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,7 @@
11
{
2+
"extends": "@tsconfig/recommended/tsconfig.json",
23
"compilerOptions": {
3-
"resolveJsonModule": true,
4-
"esModuleInterop": true,
5-
"module": "NodeNext",
6-
"target": "ES5",
74
"outDir": "./dist",
8-
"forceConsistentCasingInFileNames": true,
9-
"noImplicitReturns": true,
10-
"strict": true,
11-
"noUnusedLocals": true
125
},
136
"exclude": ["node_modules", "./dist/**/*", "./tests/**/*"]
147
}

docs/docco/src/response.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ <h1>response.ts</h1>
169169

170170
<span class="hljs-variable language_">this</span>.<span class="hljs-property">raw</span> = <span class="hljs-variable constant_">RT</span>.<span class="hljs-title function_">translate</span>(raw, cmd, ph);
171171
<span class="hljs-variable language_">console</span>.<span class="hljs-title function_">log</span>(<span class="hljs-variable language_">this</span>.<span class="hljs-property">raw</span>);
172-
<span class="hljs-variable language_">console</span>.<span class="hljs-title function_">log</span>(<span class="hljs-string">&#x27;-----------------------------------------&#x27;</span>);
172+
<span class="hljs-variable language_">console</span>.<span class="hljs-title function_">log</span>(<span class="hljs-string">&quot;-----------------------------------------&quot;</span>);
173173
<span class="hljs-variable language_">this</span>.<span class="hljs-property">hash</span> = <span class="hljs-variable constant_">RP</span>.<span class="hljs-title function_">parse</span>(<span class="hljs-variable language_">this</span>.<span class="hljs-property">raw</span>);
174174
<span class="hljs-variable language_">this</span>.<span class="hljs-property">columnkeys</span> = [];
175175
<span class="hljs-variable language_">this</span>.<span class="hljs-property">columns</span> = [];

docs/docco/src/responsetemplatemanager.html

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,14 +128,29 @@ <h1>responsetemplatemanager.ts</h1>
128128
<span class="hljs-variable language_">this</span>.<span class="hljs-property">templates</span> = {
129129
<span class="hljs-number">404</span>: <span class="hljs-variable language_">this</span>.<span class="hljs-title function_">generateTemplate</span>(<span class="hljs-string">&quot;421&quot;</span>, <span class="hljs-string">&quot;Page not found&quot;</span>),
130130
<span class="hljs-number">500</span>: <span class="hljs-variable language_">this</span>.<span class="hljs-title function_">generateTemplate</span>(<span class="hljs-string">&quot;500&quot;</span>, <span class="hljs-string">&quot;Internal server error&quot;</span>),
131-
<span class="hljs-attr">empty</span>: <span class="hljs-variable language_">this</span>.<span class="hljs-title function_">generateTemplate</span>(<span class="hljs-string">&quot;423&quot;</span>, <span class="hljs-string">&quot;Empty API response. Probably unreachable API end point {CONNECTION_URL}&quot;</span>),
132-
<span class="hljs-attr">error</span>: <span class="hljs-variable language_">this</span>.<span class="hljs-title function_">generateTemplate</span>(<span class="hljs-string">&quot;421&quot;</span>, <span class="hljs-string">&quot;Command failed due to server error. Client should try again&quot;</span>),
131+
<span class="hljs-attr">empty</span>: <span class="hljs-variable language_">this</span>.<span class="hljs-title function_">generateTemplate</span>(
132+
<span class="hljs-string">&quot;423&quot;</span>,
133+
<span class="hljs-string">&quot;Empty API response. Probably unreachable API end point {CONNECTION_URL}&quot;</span>,
134+
),
135+
<span class="hljs-attr">error</span>: <span class="hljs-variable language_">this</span>.<span class="hljs-title function_">generateTemplate</span>(
136+
<span class="hljs-string">&quot;421&quot;</span>,
137+
<span class="hljs-string">&quot;Command failed due to server error. Client should try again&quot;</span>,
138+
),
133139
<span class="hljs-attr">expired</span>: <span class="hljs-variable language_">this</span>.<span class="hljs-title function_">generateTemplate</span>(<span class="hljs-string">&quot;530&quot;</span>, <span class="hljs-string">&quot;SESSION NOT FOUND&quot;</span>),
134-
<span class="hljs-attr">httperror</span>: <span class="hljs-variable language_">this</span>.<span class="hljs-title function_">generateTemplate</span>(<span class="hljs-string">&quot;421&quot;</span>, <span class="hljs-string">&quot;Command failed due to HTTP communication error&quot;</span>),
135-
<span class="hljs-attr">invalid</span>: <span class="hljs-variable language_">this</span>.<span class="hljs-title function_">generateTemplate</span>(<span class="hljs-string">&quot;423&quot;</span>, <span class="hljs-string">&quot;Invalid API response. Contact Support&quot;</span>),
136-
<span class="hljs-attr">nocurl</span>: <span class="hljs-variable language_">this</span>.<span class="hljs-title function_">generateTemplate</span>(<span class="hljs-string">&quot;423&quot;</span>, <span class="hljs-string">&quot;API access error: curl_init failed&quot;</span>),
140+
<span class="hljs-attr">httperror</span>: <span class="hljs-variable language_">this</span>.<span class="hljs-title function_">generateTemplate</span>(
141+
<span class="hljs-string">&quot;421&quot;</span>,
142+
<span class="hljs-string">&quot;Command failed due to HTTP communication error&quot;</span>,
143+
),
144+
<span class="hljs-attr">invalid</span>: <span class="hljs-variable language_">this</span>.<span class="hljs-title function_">generateTemplate</span>(
145+
<span class="hljs-string">&quot;423&quot;</span>,
146+
<span class="hljs-string">&quot;Invalid API response. Contact Support&quot;</span>,
147+
),
148+
<span class="hljs-attr">nocurl</span>: <span class="hljs-variable language_">this</span>.<span class="hljs-title function_">generateTemplate</span>(
149+
<span class="hljs-string">&quot;423&quot;</span>,
150+
<span class="hljs-string">&quot;API access error: curl_init failed&quot;</span>,
151+
),
137152
<span class="hljs-attr">notfound</span>: <span class="hljs-variable language_">this</span>.<span class="hljs-title function_">generateTemplate</span>(<span class="hljs-string">&quot;500&quot;</span>, <span class="hljs-string">&quot;Response Template not found&quot;</span>),
138-
<span class="hljs-attr">unauthorized</span>: <span class="hljs-variable language_">this</span>.<span class="hljs-title function_">generateTemplate</span>(<span class="hljs-string">&quot;530&quot;</span>, <span class="hljs-string">&quot;Unauthorized&quot;</span>)
153+
<span class="hljs-attr">unauthorized</span>: <span class="hljs-variable language_">this</span>.<span class="hljs-title function_">generateTemplate</span>(<span class="hljs-string">&quot;530&quot;</span>, <span class="hljs-string">&quot;Unauthorized&quot;</span>),
139154
};
140155
}
141156

0 commit comments

Comments
 (0)