Skip to content

Commit c6e2b91

Browse files
committed
feat(config/tsconfig): add common TypeScript configuration
1 parent 2831781 commit c6e2b91

File tree

3 files changed

+30
-1
lines changed

3 files changed

+30
-1
lines changed

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
"config.js",
3434
"prettier.js",
3535
"jest.js",
36-
"lint-staged.js"
36+
"lint-staged.js",
37+
"tsconfig.json"
3738
],
3839
"keywords": [],
3940
"author": "Jamie Rolfs <[email protected]>",

src/config/tsconfig.json

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"compilerOptions": {
3+
"alwaysStrict": true,
4+
"baseUrl": "./",
5+
"declaration": true,
6+
"esModuleInterop": true,
7+
"importHelpers": true,
8+
"jsx": "react",
9+
"lib": ["dom", "esnext"],
10+
"module": "esnext",
11+
"moduleResolution": "node",
12+
"noFallthroughCasesInSwitch": true,
13+
"noImplicitAny": true,
14+
"noImplicitReturns": true,
15+
"noImplicitThis": true,
16+
"noUnusedLocals": true,
17+
"noUnusedParameters": true,
18+
"sourceMap": true,
19+
"strict": true,
20+
"strictFunctionTypes": true,
21+
"strictNullChecks": true,
22+
"strictPropertyInitialization": true,
23+
"target": "es5"
24+
}
25+
}

tsconfig.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "./src/config/tsconfig"
3+
}

0 commit comments

Comments
 (0)