提交 4eb48ce9 编写于 作者: R Resi Respati 提交者: Joe Haddad

Remove `allowSyntheticDefaultImports` in favor of `esModuleInterop` (#7338)

As mentioned on previous PRs related to TypeScript, setting `esModuleInterop`
to `true` automatically sets `allowSyntheticDefaultImports` to `true` as
well, so this config validation is not required.

Reference: https://github.com/zeit/next.js/pull/7169#discussion_r280831148
上级 577cc7b6
......@@ -107,7 +107,6 @@ export async function verifyTypeScriptSetup(dir: string): Promise<void> {
lib: { suggested: ['dom', 'dom.iterable', 'esnext'] },
allowJs: { suggested: true },
skipLibCheck: { suggested: true },
allowSyntheticDefaultImports: { suggested: true },
strict: { suggested: true },
forceConsistentCasingInFileNames: { suggested: true },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册