Skip to content

Commit 788a291

Browse files
author
Pascal Wegner
committed
Prepare web package for typescript
1 parent db2fe83 commit 788a291

File tree

4 files changed

+34
-1
lines changed

4 files changed

+34
-1
lines changed

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,15 @@
1818
"@babel/preset-typescript": "^7.13.0",
1919
"@flextremedev/eslint-config": "^0.1.1",
2020
"@flextremedev/prettier-config": "^0.1.0",
21+
"@types/jest": "^26.0.22",
22+
"@types/node": "^14.14.37",
2123
"eslint": "^7.23.0",
2224
"eslint-config-prettier": "^8.1.0",
2325
"eslint-plugin-import": "^2.22.1",
2426
"eslint-plugin-prettier": "^3.3.1",
2527
"husky": "^3.0.5",
2628
"lint-staged": "^9.2.5",
27-
"prettier": "^2.2.1"
29+
"prettier": "^2.2.1",
30+
"typescript": "^4.2.3"
2831
}
2932
}

packages/web/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@
4747
},
4848
"devDependencies": {
4949
"@flextremedev/eslint-config-react": "^0.1.1",
50+
"@types/react": "^17.0.3",
51+
"@types/react-dom": "^17.0.3",
52+
"@types/react-helmet": "^6.1.0",
5053
"eslint-config-prettier": "^6.2.0",
5154
"eslint-plugin-prettier": "^3.1.0",
5255
"eslint-plugin-react": "^7.23.1",
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/// <reference types="react-scripts" />

packages/web/tsconfig.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"compilerOptions": {
3+
"target": "es5",
4+
"lib": [
5+
"dom",
6+
"dom.iterable",
7+
"esnext"
8+
],
9+
"allowJs": true,
10+
"skipLibCheck": true,
11+
"esModuleInterop": true,
12+
"allowSyntheticDefaultImports": true,
13+
"strict": true,
14+
"forceConsistentCasingInFileNames": true,
15+
"noFallthroughCasesInSwitch": true,
16+
"module": "esnext",
17+
"moduleResolution": "node",
18+
"resolveJsonModule": true,
19+
"isolatedModules": true,
20+
"noEmit": true,
21+
"jsx": "react-jsx"
22+
},
23+
"include": [
24+
"src"
25+
]
26+
}

0 commit comments

Comments
 (0)