Disable default-case lint rule for TypeScript (#6937)

This commit is contained in:
Ian Schmitz
2019-05-03 13:22:09 -07:00
committed by GitHub
parent b36d1ea1aa
commit 4397d069d9
2 changed files with 7 additions and 1 deletions

View File

@@ -106,6 +106,8 @@ function verifyTypeScriptSetup() {
allowSyntheticDefaultImports: { suggested: true },
strict: { suggested: true },
forceConsistentCasingInFileNames: { suggested: true },
// TODO: Enable for v4.0 (#6936)
// noFallthroughCasesInSwitch: { suggested: true },
// These values are required and cannot be changed by the user
// Keep this in sync with the webpack config
@@ -181,7 +183,7 @@ function verifyTypeScriptSetup() {
)
);
}
console.log(e && e.message ? `${e.message}` : '');
process.exit(1);
}