Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function loadFormatter(name: string): FormatterConstructor | undefined {
const result = TSLint.findFormatter(name);
return result === undefined ? undefined : wrapTslintFormatter(result);
}
public loadCustomFormatter(name: string, basedir: string): FormatterConstructor | undefined {
const result = super.loadCustomFormatter(name, basedir);
if (result !== undefined)
return result;
const tslintFormatter = TSLint.findFormatter(name);
return tslintFormatter && wrapTslintFormatter(tslintFormatter);
}
}