From 801dd16bb68561a9c78f27b6a64fd925ba590341 Mon Sep 17 00:00:00 2001 From: Benjamin DeMann Date: Wed, 10 Apr 2024 16:14:24 -0600 Subject: [PATCH] finishing restoring recommended linting rules --- .eslintrc.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index c9f56dc417..8e2555a094 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,10 +1,3 @@ -// 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 = { - '@typescript-eslint/no-explicit-any': 'off', // 537 problems - 'no-undef': 'off' // 79 problems -}; - module.exports = { env: { es2021: true, @@ -53,6 +46,7 @@ module.exports = { ], '@typescript-eslint/ban-ts-comment': 'off', 'prefer-const': 'off', // For azle let is used to indicate mutability not only re-assignability - ...temporarilyDisabledRules + 'no-undef': 'error', // TS compiler handles this for us + '@typescript-eslint/no-explicit-any': 'off' // TODO https://github.com/demergent-labs/azle/issues/1737 } };