Skip to content

Commit

Permalink
finishing restoring recommended linting rules
Browse files Browse the repository at this point in the history
  • Loading branch information
bdemann committed Apr 10, 2024
1 parent 7b38bea commit 801dd16
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -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
}
};

0 comments on commit 801dd16

Please sign in to comment.