Skip to content

Commit ae5d61d

Browse files
resir014timneutkens
authored andcommitted
[@zeit/next-typescript] Updated recommended tsconfig.json (vercel#295)
- Updated tsconfig and sorted every key alphabetically as recommended here: vercel#281 (comment) - Recommend `strict` mode in `tsconfig.json`
1 parent 5ec7d7e commit ae5d61d

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

packages/next-typescript/readme.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,21 +42,22 @@ Create a `tsconfig.json` in your project
4242
```json
4343
{
4444
"compilerOptions": {
45-
"target": "esnext",
46-
"module": "esnext",
45+
"allowJs": true,
46+
"allowSyntheticDefaultImports": true,
47+
"baseUrl": ".",
4748
"jsx": "preserve",
4849
"lib": ["dom", "es2017"],
49-
"baseUrl": ".",
50+
"module": "esnext",
5051
"moduleResolution": "node",
51-
"allowJs": true,
5252
"noEmit": true,
53-
"allowSyntheticDefaultImports": true,
54-
"skipLibCheck": true,
5553
"noUnusedLocals": true,
5654
"noUnusedParameters": true,
57-
"removeComments": false,
5855
"preserveConstEnums": true,
59-
"sourceMap": true
56+
"removeComments": false,
57+
"skipLibCheck": true,
58+
"sourceMap": true,
59+
"strict": true,
60+
"target": "esnext"
6061
}
6162
}
6263
```

0 commit comments

Comments
 (0)