From b8c769ee275f7cab93428b00ea96b93134f06e21 Mon Sep 17 00:00:00 2001 From: Benjamin DeMann Date: Thu, 4 Apr 2024 21:13:10 -0600 Subject: [PATCH] add comments, use regular consistent-return --- .eslintrc.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index da77302262..e274f15f4a 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,16 +1,16 @@ // TODO: These rules should be enabled, but we had offenses when we enabled ESLint. // This is tech-debt. We should go through and re-enable these at some point. const temporarilyDisabledRules = { + 'consistent-return': 'off', // 5 problems '@typescript-eslint/require-await': 'off', - '@typescript-eslint/no-unsafe-return': 'off', - '@typescript-eslint/no-unsafe-argument': 'off', - '@typescript-eslint/no-unsafe-member-access': 'off', - '@typescript-eslint/no-unsafe-call': 'off', - '@typescript-eslint/no-unsafe-assignment': 'off', + '@typescript-eslint/no-unsafe-return': 'off', // No any returned + '@typescript-eslint/no-unsafe-argument': 'off', // No any passed as arguments + '@typescript-eslint/no-unsafe-member-access': 'off', // No accessing members of any + '@typescript-eslint/no-unsafe-call': 'off', // 27 errors No calling on any + '@typescript-eslint/no-unsafe-assignment': 'off', // 73 errors Don't assign any to anything '@typescript-eslint/no-misused-promises': 'off', '@typescript-eslint/no-floating-promises': 'off', - '@typescript-eslint/no-redundant-type-constituents': 'off', - '@typescript-eslint/restrict-template-expressions': 'off' + '@typescript-eslint/restrict-template-expressions': 'off' // 2 errors }; module.exports = {