From bdb0ea9709f6ef5b6e144360be680824357f227a Mon Sep 17 00:00:00 2001 From: John Ruble Date: Wed, 1 May 2019 23:30:18 -0400 Subject: [PATCH] fix unrelated lint errors --- packages/jest-transform/src/ScriptTransformer.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/jest-transform/src/ScriptTransformer.ts b/packages/jest-transform/src/ScriptTransformer.ts index 7748d2cb2439..dff0dd3fae13 100644 --- a/packages/jest-transform/src/ScriptTransformer.ts +++ b/packages/jest-transform/src/ScriptTransformer.ts @@ -573,7 +573,7 @@ const calcIgnorePatternRegExp = (config: Config.ProjectConfig) => { !config.transformIgnorePatterns || config.transformIgnorePatterns.length === 0 ) { - return; + return undefined; } return new RegExp(config.transformIgnorePatterns.join('|')); @@ -581,7 +581,7 @@ const calcIgnorePatternRegExp = (config: Config.ProjectConfig) => { const calcTransformRegExp = (config: Config.ProjectConfig) => { if (!config.transform.length) { - return; + return undefined; } const transformRegexp: Array<[RegExp, string]> = [];