Skip to content

Commit

Permalink
Add no-unused-variable rule
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeembrey committed Apr 7, 2017
1 parent a70086b commit ad29f36
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/rules.out
@@ -1,9 +1,11 @@

ERROR: rules/curly.ts[4, 3]: if statements must be braced
ERROR: rules/handle-callback-err.ts[1, 21]: Expected error to be handled
ERROR: rules/import-spacing.ts[2, 1]: All imports are unused.
ERROR: rules/import-spacing.ts[1, 7]: missing whitespace
ERROR: rules/no-constant-condition.ts[1, 5]: unexpected constant condition
ERROR: rules/no-inner-declarations.ts[4, 20]: block is empty
ERROR: rules/no-inner-declarations.ts[4, 12]: 'test' is declared but never used.
ERROR: rules/no-inner-declarations.ts[4, 3]: move function declaration to program root
ERROR: rules/no-multi-spaces.ts[1, 22]: Multiple spaces found before 'true'.
ERROR: rules/semicolon.ts[1, 24]: Unnecessary semicolon
Expand Down
1 change: 1 addition & 0 deletions tslint.js
Expand Up @@ -52,6 +52,7 @@ module.exports = {
'no-reference-import': true,
'no-switch-case-fall-through': true,
'no-unused-expression': [true, 'allow-fast-null-checks', 'allow-tagged-template'],
'no-unused-variable': [true, { 'ignore-pattern': '^_' }],
'no-use-before-declare': true,
'no-var-keyword': true,
'radix': true,
Expand Down

0 comments on commit ad29f36

Please sign in to comment.