Commit 4eb48ce9 authored by Resi Respati's avatar Resi Respati Committed by 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
parent 577cc7b6
...@@ -107,7 +107,6 @@ export async function verifyTypeScriptSetup(dir: string): Promise<void> { ...@@ -107,7 +107,6 @@ export async function verifyTypeScriptSetup(dir: string): Promise<void> {
lib: { suggested: ['dom', 'dom.iterable', 'esnext'] }, lib: { suggested: ['dom', 'dom.iterable', 'esnext'] },
allowJs: { suggested: true }, allowJs: { suggested: true },
skipLibCheck: { suggested: true }, skipLibCheck: { suggested: true },
allowSyntheticDefaultImports: { suggested: true },
strict: { suggested: true }, strict: { suggested: true },
forceConsistentCasingInFileNames: { suggested: true }, forceConsistentCasingInFileNames: { suggested: true },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment