CRAP | Complexity | Coverage | Location |
---|---|---|---|
2.00 | 2 | 4/4 (100.00%) | crap/complexity.service.ts (L108 - L115) |
private async lint({ source }: { source: string }): Promise<ESLint.LintResult> {
let [result] = await this.getEslint({ useJsx: false }).lintText(source);
if (result.fatalErrorCount > 0) {
[result] = await this.getEslint({ useJsx: true }).lintText(source);
}
return result;
}