Skip to content

Commit 5498399

Browse files
committed
Setup typescript
1 parent 183d5d1 commit 5498399

File tree

5 files changed

+64
-1
lines changed

5 files changed

+64
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
dist/
12
node_modules/

package-lock.json

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

package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "ESLint rules for TypeScript enums.",
55
"main": "index.js",
66
"scripts": {
7+
"build": "tsc",
78
"test": "echo \"Error: no test specified\" && exit 1"
89
},
910
"repository": {
@@ -26,5 +27,10 @@
2627
"bugs": {
2728
"url": "https://github.com/shian15810/eslint-plugin-typescript-enum/issues"
2829
},
29-
"homepage": "https://github.com/shian15810/eslint-plugin-typescript-enum#readme"
30+
"homepage": "https://github.com/shian15810/eslint-plugin-typescript-enum#readme",
31+
"dependencies": {},
32+
"devDependencies": {
33+
"typesafeconfig": "^4.1.0",
34+
"typescript": "^4.1.3"
35+
}
3036
}

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export {};

tsconfig.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "typesafeconfig",
3+
"compilerOptions": {
4+
"outDir": "dist"
5+
}
6+
}

0 commit comments

Comments
 (0)