mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-23 12:48:00 +08:00
Disable default-case lint rule for TypeScript (#6937)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user