This repository was archived by the owner on Mar 5, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +6
-14
lines changed Expand file tree Collapse file tree 4 files changed +6
-14
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export default function getDisplayName(
18
18
return nameFromCache
19
19
}
20
20
21
- let displayName : string | null = null ;
21
+ let displayName : string | null = null
22
22
23
23
// The displayName property is not guaranteed to be a string.
24
24
// It's only safe to use for our purposes if it's a string.
Original file line number Diff line number Diff line change @@ -78,4 +78,7 @@ export const injectStylesBeforeElement = (
78
78
if ( typeof options . cssFiles === 'string' ) {
79
79
return insertSingleCssFile ( options . cssFiles , document , el )
80
80
}
81
+
82
+ // force this function to have a return value from all branches
83
+ return cy . wrap ( null )
81
84
}
Original file line number Diff line number Diff line change 15
15
"pretest" : " npm run lint && npm run transpile" ,
16
16
"lint" : " standard --verbose --fix *.js src cypress/integration" ,
17
17
"semantic-release" : " semantic-release" ,
18
- "format" : " prettier --write 'src/*.jsx' 'cypress/**/*.js' 'cypress/**/*.jsx' 'lib/*.ts'"
18
+ "format" : " prettier --write '*.js', ' src/*.jsx' 'cypress/**/*.js' 'cypress/**/*.jsx' 'lib/*.ts'"
19
19
},
20
20
"husky" : {
21
21
"hooks" : {
Original file line number Diff line number Diff line change 23
23
// "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
24
24
25
25
/* Strict Type-Checking Options */
26
- "strict" : false /* Enable all strict type-checking options. */ ,
27
- "noImplicitAny" : true /* Raise error on expressions and declarations with an implied 'any' type. */ ,
28
- "strictNullChecks" : true /* Enable strict null checks. */ ,
29
- // "strictFunctionTypes": true, /* Enable strict checking of function types. */
30
- // "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
31
- // "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
32
-
33
- /* Additional Checks */
34
- // "noUnusedLocals": true, /* Report errors on unused locals. */
35
- // "noUnusedParameters": true, /* Report errors on unused parameters. */
36
- // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
37
- // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
26
+ "strict" : true /* Enable all strict type-checking options. */ ,
38
27
39
28
/* Module Resolution Options */
40
29
// "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
You can’t perform that action at this time.
0 commit comments