From fb319cf96374244093cc6647e2b8ef57397296fe Mon Sep 17 00:00:00 2001 From: Ethan Smith Date: Thu, 4 Apr 2019 15:23:39 -0400 Subject: [PATCH] feat: Error on 'var' in TypeScript files --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index 30d76ec..a25e66c 100644 --- a/index.js +++ b/index.js @@ -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',