Skip to content

Commit

Permalink
Re-enable handle-callback-err and no-ex-assign
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeembrey committed Oct 2, 2016
1 parent 2350f55 commit df6b83e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 2 additions & 0 deletions test/rules/handle-callback-err.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
handle-callback-err.ts[1, 10]: Unused function: 'cb'
handle-callback-err.ts[1, 14]: Expected error to be handled
3 changes: 3 additions & 0 deletions test/rules/handle-callback-err.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
function cb (err) {
console.log('hello world')
}
10 changes: 5 additions & 5 deletions tslint.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ module.exports = {
'no-control-regex': true,
'no-duplicate-case': true,
'no-empty-character-class': true,
// 'no-ex-assign': true,
'no-ex-assign': true,
'no-extra-boolean-cast': true,
'no-inner-declarations': [
true,
Expand Down Expand Up @@ -202,10 +202,10 @@ module.exports = {
// 'no-label-var': true,
// 'no-shadow-restricted-names': true,
// 'no-undef-init': true,
// 'handle-callback-err': [
// true,
// '^(err|error)$'
// ],
'handle-callback-err': [
true,
'^(err|error)$'
],
// 'no-new-require': true,
// 'no-path-concat': true,
'block-spacing': [
Expand Down

0 comments on commit df6b83e

Please sign in to comment.