Fix tslint issues

This commit is contained in:
Leonid Logvinov
2018-07-17 12:59:02 +02:00
parent edcdc9b1b9
commit bf8ac3b9e6
113 changed files with 354 additions and 323 deletions

View File

@@ -29,6 +29,7 @@ export class Rule extends Lint.Rules.AbstractRule {
public apply(sourceFile: ts.SourceFile): Lint.RuleFailure[] {
const allowedNumbers = this.ruleArguments.length > 0 ? this.ruleArguments : Rule.DEFAULT_ALLOWED;
return this.applyWithWalker(
// tslint:disable-next-line:no-inferred-empty-object-type
new CustomNoMagicNumbersWalker(sourceFile, this.ruleName, new Set(allowedNumbers.map(String))),
);
}