Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tslint rules for #3994 #4458

Merged
merged 6 commits into from
Sep 18, 2015
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Simplify it a bit
  • Loading branch information
weswigham committed Aug 26, 2015
commit 0d88d8df68dca5704d5234a512fad371463bd920
11 changes: 0 additions & 11 deletions scripts/tslint/noInferrableTypesRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,6 @@ export class Rule extends Lint.Rules.AbstractRule {
}

class InferrableTypeWalker extends Lint.RuleWalker {
private originalService: ts.LanguageService;
private fileName: string;
private originalContent: string;

constructor(file: ts.SourceFile, opts: Lint.IOptions) {
this.fileName = file.fileName;
this.originalContent = file.getFullText();
this.originalService = ts.createLanguageService(Lint.createLanguageServiceHost(this.fileName, this.originalContent));
super(this.originalService.getSourceFile(this.fileName), opts);
}

visitVariableStatement(node: ts.VariableStatement) {
node.declarationList.declarations.forEach(e => {
if ((!!e.type) && (!!e.initializer)) {
Expand Down