Skip to content

Commit

Permalink
feat: Error on 'var' in TypeScript files
Browse files Browse the repository at this point in the history
  • Loading branch information
onebytegone committed Apr 4, 2019
1 parent d21ade8 commit fb319cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,8 @@ module.exports = {
// class properties in TypeScript. The TypeScript-specific rule fixes this.
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'error',
// For TypeScript code, `const`/`let` should be used exclusively
'no-var': 'error',
// new-cap throws errors with property decorators
'new-cap': 'off',

Expand Down

0 comments on commit fb319cf

Please sign in to comment.