From e92f9d47c9f8b9edace821a20a2360e3a51dd313 Mon Sep 17 00:00:00 2001 From: Felix Becker Date: Tue, 7 Apr 2020 15:16:01 +0200 Subject: [PATCH] feat: enable prefer-as-const (#76) --- .eslintrc.js | 1 + 1 file changed, 1 insertion(+) diff --git a/.eslintrc.js b/.eslintrc.js index 077276e0..808b3a61 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -261,6 +261,7 @@ module.exports = { '@typescript-eslint/no-use-before-define': ['error', { functions: false }], '@typescript-eslint/no-useless-constructor': 'error', '@typescript-eslint/no-var-requires': 'error', + '@typescript-eslint/prefer-as-const': 'error', '@typescript-eslint/prefer-for-of': 'error', '@typescript-eslint/prefer-function-type': 'error', '@typescript-eslint/prefer-includes': 'error',