Skip to content

Commit 30e4f53

Browse files
committed
feat: add typescript
Signed-off-by: Vitor Hugo Salgado <[email protected]>
1 parent 85f6efa commit 30e4f53

File tree

5 files changed

+112
-8
lines changed

5 files changed

+112
-8
lines changed

package-lock.json

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

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,13 @@
2222
"devDependencies": {
2323
"@commitlint/cli": "^12.1.4",
2424
"@commitlint/config-conventional": "^12.1.4",
25+
"@types/node": "^16.3.1",
2526
"husky": "^7.0.1",
2627
"lint-staged": "^11.0.0",
27-
"prettier": "^2.3.2"
28+
"prettier": "^2.3.2",
29+
"typescript": "^4.3.5"
30+
},
31+
"dependencies": {
32+
"tslib": "^1.14.1"
2833
}
2934
}

tsconfig.build.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"exclude": [
4+
"dist",
5+
"node_modules",
6+
"__test",
7+
"**/*.spec.ts",
8+
"**/*.spec.js",
9+
"*.spec.ts",
10+
"**/spec.ts"
11+
]
12+
}

tsconfig.json

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"compilerOptions": {
3+
"target": "ES2018",
4+
"module": "CommonJS",
5+
"moduleResolution": "node",
6+
"allowSyntheticDefaultImports": true,
7+
"esModuleInterop": true,
8+
"importHelpers": true,
9+
"resolveJsonModule": true,
10+
"sourceMap": true,
11+
"declaration": true,
12+
13+
"removeComments": true,
14+
"noImplicitAny": true,
15+
"strictNullChecks": true,
16+
"strictFunctionTypes": true,
17+
"noImplicitThis": true,
18+
"noUnusedLocals": false,
19+
"noUnusedParameters": false,
20+
"noImplicitReturns": true,
21+
"strict": true,
22+
"noFallthroughCasesInSwitch": true,
23+
"emitDecoratorMetadata": true,
24+
"experimentalDecorators": true,
25+
"composite": true,
26+
"skipLibCheck": true,
27+
28+
"outDir": "dist",
29+
"rootDir": "src",
30+
"baseUrl": ".",
31+
"paths": {
32+
"@app/*": ["./src/*"]
33+
},
34+
"typeRoots": [
35+
"node_modules/@types",
36+
"ts-declarations.d.ts"
37+
]
38+
},
39+
"exclude": [
40+
"dist",
41+
"node_modules"
42+
],
43+
"include": ["./src/**/*"]
44+
}

tsconfig.test.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"noUnusedParameters": false,
5+
"noUnusedLocals": false,
6+
"allowUnusedLabels": true,
7+
"outDir": "dist"
8+
}
9+
}

0 commit comments

Comments
 (0)