Permalink
Browse files

Blacklist test dir instead of whitelisting src

  • Loading branch information...
alcuadrado committed Dec 31, 2018
1 parent eb30358 commit e860e9d9df7de7c978b7c3afde68744fc2309530
Showing with 2 additions and 2 deletions.
  1. +2 −2 tslint/onlyBuidlerErrorRule.ts
@@ -17,8 +17,8 @@ export class Rule extends Lint.Rules.TypedRule {
sourceFile: ts.SourceFile,
program: ts.Program
): Lint.RuleFailure[] {
const srcDir = path.normalize(__dirname + "/../src");
if (!sourceFile.fileName.startsWith(srcDir)) {
const srcDir = path.normalize(__dirname + "/../test");
if (sourceFile.fileName.startsWith(srcDir)) {
return [];
}

0 comments on commit e860e9d

Please sign in to comment.