Skip to content

Commit

Permalink
Update to TSLint v4.x (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdurling authored and blakeembrey committed Nov 21, 2016
1 parent a4ca31d commit e400624
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@
"blue-tape": "^1.0.0",
"standard": "^8.1.0",
"tap-spec": "^4.1.1",
"tslint": "^3.15.1",
"tslint": "^4.0.1",
"typescript": "^2.0.3"
},
"dependencies": {
"tslint-eslint-rules": "^2.0.1"
"tslint-eslint-rules": "^3.0.0"
}
}
2 changes: 1 addition & 1 deletion test/rules/handle-callback-err.out
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
handle-callback-err.ts[1, 10]: Unused function: 'cb'

handle-callback-err.ts[1, 14]: Expected error to be handled
1 change: 1 addition & 0 deletions test/rules/no-constant-condition.out
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@

no-constant-condition.ts[1, 5]: unexpected constant condition
2 changes: 1 addition & 1 deletion test/rules/no-inner-declarations.out
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@

no-inner-declarations.ts[4, 20]: block is empty
no-inner-declarations.ts[4, 12]: Unused function: 'test'
no-inner-declarations.ts[4, 3]: move function declaration to program root
2 changes: 1 addition & 1 deletion test/rules/no-multi-spaces.out
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
no-multi-spaces.ts[1, 7]: Unused variable: 'test'

no-multi-spaces.ts[1, 15]: Multiple spaces found before 'true'.
2 changes: 1 addition & 1 deletion test/rules/semicolon.out
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
semicolon.ts[1, 7]: Unused variable: 'foo'

semicolon.ts[1, 17]: Unnecessary semicolon
2 changes: 1 addition & 1 deletion test/rules/trailing-comma.out
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
trailing-comma.ts[1, 7]: Unused variable: 'foo'

trailing-comma.ts[3, 7]: Unnecessary trailing comma
2 changes: 0 additions & 2 deletions tslint.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@ module.exports = {
'no-empty': true,
'no-eval': true,
'no-switch-case-fall-through': true,
'no-unreachable': true,
'no-unused-expression': true,
'no-unused-variable': true,
'no-var-keyword': true,
'radix': true,
'triple-equals': [
Expand Down

0 comments on commit e400624

Please sign in to comment.