Skip to content

Commit

Permalink
Switch to 1.5.0-beta, temporarily add typings for missing scanner
Browse files Browse the repository at this point in the history
  • Loading branch information
gscshoyru committed May 4, 2015
1 parent 2984a02 commit 3b8e280
Show file tree
Hide file tree
Showing 9 changed files with 190 additions and 379 deletions.
1 change: 1 addition & 0 deletions lib/tslint.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/// <reference path="../typings/typescriptServices.d.ts" />
/// <reference path="../typings/typescriptServicesScanner.d.ts" />
/// <reference path="../typings/node.d.ts" />
declare module Lint {
interface IOptions {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"grunt-mocha-test": "~0.6.2",
"grunt-ts": "~1.12.1",
"grunt-tslint": "~2.0.0",
"typescript": "1.5.0-alpha"
"typescript": "1.5.0-beta"
},
"license": "Apache 2.0"
}
1 change: 1 addition & 0 deletions src/language/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

///<reference path="../../typings/node.d.ts" />
///<reference path="../../typings/typescriptServices.d.ts" />
///<reference path='../../typings/typescriptServicesScanner.d.ts'/>
///<reference path='./rule/rule.ts'/>

module Lint {
Expand Down
1 change: 1 addition & 0 deletions src/language/walker/syntaxWalker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/

///<reference path="../../../typings/typescriptServices.d.ts" />
///<reference path='../../../typings/typescriptServicesScanner.d.ts'/>

module Lint {
export class SyntaxWalker {
Expand Down
2 changes: 1 addition & 1 deletion src/rules/typedefWhitespaceRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class TypedefWhitespaceWalker extends Lint.RuleWalker {
super.visitVariableDeclaration(node);
}

public checkSpace(option: string, node: ts.Node, typeNode: ts.TypeNode | ts.StringLiteralExpression, positionBeforeColon: number) {
public checkSpace(option: string, node: ts.Node, typeNode: ts.TypeNode | ts.StringLiteral, positionBeforeColon: number) {
if (this.hasOption(option) && typeNode != null && positionBeforeColon != null) {
var hasLeadingWhitespace: boolean;
var scanner = ts.createScanner(ts.ScriptTarget.ES5, false, node.getText());
Expand Down
2 changes: 1 addition & 1 deletion src/rules/useStrictRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class UseStrictWalker extends Lint.ScopeAwareRuleWalker<{}> {
var firstChild = firstStatement.getChildAt(0);

if (firstChild.kind === ts.SyntaxKind.StringLiteral &&
(<ts.StringLiteralExpression> firstChild).text === UseStrictWalker.USE_STRICT_STRING) {
(<ts.StringLiteral> firstChild).text === UseStrictWalker.USE_STRICT_STRING) {
isFailure = false;
}
}
Expand Down
1 change: 1 addition & 0 deletions src/tslint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

/// <reference path='../typings/node.d.ts'/>
/// <reference path='../typings/typescriptServices.d.ts'/>
/// <reference path='../typings/typescriptServicesScanner.d.ts'/>

/// <reference path='ruleLoader.ts'/>
/// <reference path='configuration.ts'/>
Expand Down
Loading

0 comments on commit 3b8e280

Please sign in to comment.