Skip to content

Commit 0d1a972

Browse files
committed
Add TypeScript
1 parent 53ee837 commit 0d1a972

File tree

3 files changed

+37
-3
lines changed

3 files changed

+37
-3
lines changed

package-lock.json

+15-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@
33
"version": "1.0.0",
44
"scripts": {
55
"lint": "eslint . && prettier -c \"**/*.js\"",
6-
"fix": "eslint . --fix && prettier --write \"**/*.js\""
6+
"fix": "eslint . --fix && prettier --write \"**/*.js\"",
7+
"build": "tsc; prettier --write \"**/*.js\""
78
},
89
"author": "Timur Shemsedinov",
910
"private": true,
1011
"dependencies": {
1112
"eslint": "^9.12.0",
1213
"eslint-config-metarhia": "^9.1.0",
13-
"prettier": "^3.3.3"
14+
"prettier": "^3.3.3",
15+
"typescript": "^5.6.3"
1416
}
1517
}

tsconfig.json

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"compilerOptions": {
3+
"target": "esnext",
4+
"module": "CommonJS",
5+
"moduleResolution": "node",
6+
"moduleDetection": "force",
7+
"strict": true,
8+
"esModuleInterop": true,
9+
"skipLibCheck": true,
10+
"outDir": "./TypeScript",
11+
"rootDir": "./TypeScript",
12+
"allowSyntheticDefaultImports": false,
13+
"isolatedModules": true,
14+
"pretty": true
15+
},
16+
"include": ["TypeScript/*.ts"],
17+
"exclude": ["node_modules"]
18+
}

0 commit comments

Comments
 (0)