File tree 2 files changed +7
-1
lines changed
react-scripts/scripts/utils
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,10 @@ module.exports = {
69
69
// If adding a typescript-eslint version of an existing ESLint rule,
70
70
// make sure to disable the ESLint rule here.
71
71
rules : {
72
+ // TypeScript's `noFallthroughCasesInSwitch` option is more robust (#6906)
73
+ 'default-case' : 'off' ,
74
+
75
+ // Add TypeScript specific rules (and turn off ESLint equivalents)
72
76
'@typescript-eslint/no-angle-bracket-type-assertion' : 'warn' ,
73
77
'no-array-constructor' : 'off' ,
74
78
'@typescript-eslint/no-array-constructor' : 'warn' ,
Original file line number Diff line number Diff line change @@ -106,6 +106,8 @@ function verifyTypeScriptSetup() {
106
106
allowSyntheticDefaultImports : { suggested : true } ,
107
107
strict : { suggested : true } ,
108
108
forceConsistentCasingInFileNames : { suggested : true } ,
109
+ // TODO: Enable for v4.0 (#6936)
110
+ // noFallthroughCasesInSwitch: { suggested: true },
109
111
110
112
// These values are required and cannot be changed by the user
111
113
// Keep this in sync with the webpack config
@@ -181,7 +183,7 @@ function verifyTypeScriptSetup() {
181
183
)
182
184
) ;
183
185
}
184
-
186
+
185
187
console . log ( e && e . message ? `${ e . message } ` : '' ) ;
186
188
process . exit ( 1 ) ;
187
189
}
You can’t perform that action at this time.
0 commit comments