Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 640617a

Browse files
committed
Almost done
1 parent 1e7c0c0 commit 640617a

84 files changed

Lines changed: 3677 additions & 637 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.esdoc.json

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
{
22
"source": "./src",
33
"destination": "./esdoc",
4-
"includes": ["routes", "App.js", "ErrorApp.js", "StatusCode.js", "handleError.js"],
4+
"includes": [
5+
"routes",
6+
"App.ts",
7+
"ErrorApp.ts",
8+
"StatusCode.ts",
9+
"handleError.ts"
10+
],
511
"plugins": [
612
{ "name": "esdoc-ecmascript-proposal-plugin", "option": { "all": true } },
713
{
@@ -10,10 +16,20 @@
1016
"manual": {
1117
"globalIndex": true,
1218
"badge": false,
13-
"files": ["./docs/type-system.md", "./docs/auto-doc.md", "./docs/upgrade-to-v2.md"],
19+
"files": [
20+
"./docs/type-system.md",
21+
"./docs/auto-doc.md",
22+
"./docs/upgrade-to-v2.md"
23+
],
1424
"asset": "./docs/asset"
1525
}
1626
}
27+
},
28+
{
29+
"name": "esdoc-typescript-plugin",
30+
"option": {
31+
"enable": true
32+
}
1733
}
1834
]
1935
}

.eslintrc.js

Lines changed: 199 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,211 @@
11
module.exports = {
22
env: {
3-
mocha: true,
4-
node: true,
5-
protractor: true,
63
es6: true,
4+
node: true
75
},
8-
extends: ['eslint:recommended'],
9-
parser: 'babel-eslint',
6+
extends: ["eslint:recommended"],
107
rules: {
11-
'max-len': [
12-
'error',
8+
"max-len": [
9+
"error",
1310
{
1411
code: 110,
1512
ignoreComments: true,
1613
ignoreStrings: true,
17-
ignoreTemplateLiterals: true,
18-
},
14+
ignoreTemplateLiterals: true
15+
}
1916
],
20-
indent: ['error', 2],
21-
quotes: ['error', 'single'],
22-
'comma-dangle': ['error', 'always-multiline'],
17+
"@typescript-eslint/quotes": ["error", "single"],
18+
"comma-dangle": ["error", "always-multiline"],
19+
"@typescript-eslint/class-name-casing": "error",
20+
"@typescript-eslint/explicit-member-accessibility": [
21+
"off",
22+
{
23+
overrides: {
24+
constructors: "off"
25+
}
26+
}
27+
],
28+
"@typescript-eslint/indent": ["error", 2],
29+
"@typescript-eslint/no-empty-interface": "error",
30+
"@typescript-eslint/no-inferrable-types": "error",
31+
"@typescript-eslint/no-misused-new": "error",
32+
"@typescript-eslint/no-non-null-assertion": "error",
33+
"@typescript-eslint/prefer-function-type": "error",
34+
"@typescript-eslint/type-annotation-spacing": "error",
35+
"@typescript-eslint/unified-signatures": "error",
36+
"arrow-body-style": "error",
37+
"constructor-super": "error",
38+
curly: "error",
39+
"dot-notation": "off",
40+
"eol-last": "error",
41+
"guard-for-in": "error",
42+
"@typescript-eslint/member-ordering": "error",
43+
"no-bitwise": "error",
44+
"no-caller": "error",
45+
"no-console": [
46+
"error",
47+
{
48+
allow: ["debug", "info", "time", "timeEnd", "trace"]
49+
}
50+
],
51+
"no-debugger": "error",
52+
"no-empty": "off",
53+
"no-empty-functions": "off",
54+
"no-eval": "error",
55+
"no-fallthrough": "error",
56+
"no-new-wrappers": "error",
57+
"no-throw-literal": "error",
58+
"no-undef-init": "error",
59+
"no-unused-labels": "error",
60+
"no-var": "error",
61+
"prefer-const": "error",
62+
radix: "error",
63+
"@typescript-eslint/tslint/config": [
64+
"error",
65+
{
66+
rules: {
67+
"comment-format": [true, "check-space"],
68+
"import-blacklist": [true, "rxjs/Rx"],
69+
"import-spacing": true,
70+
"max-line-length": [true, 110],
71+
"no-redundant-jsdoc": true,
72+
"no-shadowed-variable": true,
73+
"no-trailing-whitespace": true,
74+
"no-unused-expression": true,
75+
"one-line": [
76+
true,
77+
"check-open-brace",
78+
"check-catch",
79+
"check-else",
80+
"check-whitespace"
81+
],
82+
quotemark: [true, "single"],
83+
semicolon: [true, "always"],
84+
"triple-equals": [true, "allow-null-check"],
85+
whitespace: [
86+
true,
87+
"check-branch",
88+
"check-decl",
89+
"check-operator",
90+
"check-separator",
91+
"check-type"
92+
]
93+
}
94+
}
95+
]
96+
},
97+
globals: {
98+
after: false,
99+
afterEach: false,
100+
before: false,
101+
beforeEach: false,
102+
context: false,
103+
describe: false,
104+
it: false,
105+
mocha: false,
106+
run: false,
107+
setup: false,
108+
specify: false,
109+
suite: false,
110+
suiteSetup: false,
111+
suiteTeardown: false,
112+
teardown: false,
113+
test: false,
114+
xcontext: false,
115+
xdescribe: false,
116+
xit: false,
117+
xspecify: false,
118+
__dirname: false,
119+
__filename: false,
120+
Buffer: false,
121+
clearImmediate: false,
122+
clearInterval: false,
123+
clearTimeout: false,
124+
console: false,
125+
exports: true,
126+
global: false,
127+
Intl: false,
128+
module: false,
129+
process: false,
130+
queueMicrotask: false,
131+
require: false,
132+
setImmediate: false,
133+
setInterval: false,
134+
setTimeout: false,
135+
TextDecoder: false,
136+
TextEncoder: false,
137+
URL: false,
138+
URLSearchParams: false,
139+
$: false,
140+
$$: false,
141+
browser: false,
142+
by: false,
143+
By: false,
144+
DartObject: false,
145+
element: false,
146+
protractor: false,
147+
Array: false,
148+
ArrayBuffer: false,
149+
Boolean: false,
150+
constructor: false,
151+
DataView: false,
152+
Date: false,
153+
decodeURI: false,
154+
decodeURIComponent: false,
155+
encodeURI: false,
156+
encodeURIComponent: false,
157+
Error: false,
158+
escape: false,
159+
eval: false,
160+
EvalError: false,
161+
Float32Array: false,
162+
Float64Array: false,
163+
Function: false,
164+
hasOwnProperty: false,
165+
Infinity: false,
166+
Int16Array: false,
167+
Int32Array: false,
168+
Int8Array: false,
169+
isFinite: false,
170+
isNaN: false,
171+
isPrototypeOf: false,
172+
JSON: false,
173+
Map: false,
174+
Math: false,
175+
NaN: false,
176+
Number: false,
177+
Object: false,
178+
parseFloat: false,
179+
parseInt: false,
180+
Promise: false,
181+
propertyIsEnumerable: false,
182+
Proxy: false,
183+
RangeError: false,
184+
ReferenceError: false,
185+
Reflect: false,
186+
RegExp: false,
187+
Set: false,
188+
String: false,
189+
Symbol: false,
190+
SyntaxError: false,
191+
toLocaleString: false,
192+
toString: false,
193+
TypeError: false,
194+
Uint16Array: false,
195+
Uint32Array: false,
196+
Uint8Array: false,
197+
Uint8ClampedArray: false,
198+
undefined: false,
199+
unescape: false,
200+
URIError: false,
201+
valueOf: false,
202+
WeakMap: false,
203+
WeakSet: false
204+
},
205+
parserOptions: {
206+
project: "tsconfig.json",
207+
sourceType: "module"
23208
},
209+
parser: "@typescript-eslint/parser",
210+
plugins: ["@typescript-eslint", "@typescript-eslint/tslint"]
24211
};

dist/ApiDocTmp/-docs-params.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
/**
3+
* @api {post} /docs/params
4+
* @apiGroup Docs
5+
* @apiPermission public
6+
* @apiParam {Any} [any] [BODY] It should be any type.
7+
* @apiParam {Any} anyRequired [BODY] It should be any type.
8+
* @apiParam {Array} [arrayString] [BODY] It should be an array with each item being a string with a maximum of 100 characters.

dist/App.js

Lines changed: 109 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/App.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)