Skip to content

Commit

Permalink
chore: support typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
ciju committed May 30, 2022
1 parent 89b6960 commit 33ef799
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
"@tailwindcss/forms": "^0.5.2",
"@tailwindcss/typography": "^0.5.2",
"@testing-library/jest-dom": "^5.11.4",
"@types/jest": "^27.5.1",
"@types/node": "^17.0.36",
"@types/react": "^18.0.9",
"@types/react-dom": "^18.0.5",
"ansi-to-html": "^0.7.2",
"axios": "^0.27.2",
"clsx": "^1.1.1",
Expand Down Expand Up @@ -43,6 +47,7 @@
"recharts": "^2.1.10",
"tailwindcss": "^3.0.24",
"timeago.js": "^4.0.2",
"typescript": "^4.7.2",
"uuid": "^8.3.2",
"web-vitals": "^2.1.4",
"yup": "^0.32.11"
Expand Down
1 change: 1 addition & 0 deletions src/react-app-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/// <reference types="react-scripts" />
26 changes: 26 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"compilerOptions": {
"target": "es5",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"isolatedModules": true,
"jsx": "react-jsx",
"module": "esnext",
"moduleResolution": "node",
"noEmit": true,
"noFallthroughCasesInSwitch": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"strict": true
},
"include": [
"src"
]
}

0 comments on commit 33ef799

Please sign in to comment.