Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public loadCustomRule(name: string, dir: string): RuleConstructor | undefined {
const rule = super.loadCustomRule(name, dir);
if (rule !== undefined)
return rule;
const tslintRule = TSLint.findRule(name, dir);
return tslintRule && wrapTslintRule(tslintRule, name);
}
}