diff --git a/.eslintrc.js b/.eslintrc.js index 03fcc5771..8ba502a01 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -48,6 +48,7 @@ module.exports = { 'global-require': 'error', 'guard-for-in': 'error', 'no-case-declarations': 'error', + 'no-loop-func': 'error', 'no-useless-catch': 'error', 'no-useless-concat': 'error', /* End v2 rules */ diff --git a/test/unit/migrations/023-test.js b/test/unit/migrations/023-test.js index 821057bf8..98a65ceee 100644 --- a/test/unit/migrations/023-test.js +++ b/test/unit/migrations/023-test.js @@ -38,6 +38,8 @@ let nonDeletableCount = 0 let status while (transactions.length <= 100) { status = txStates[Math.floor(Math.random() * Math.floor(txStates.length - 1))] + // This is an old migration, let's allow it + // eslint-disable-next-line no-loop-func if (!deletableTxStates.find((s) => s === status)) { nonDeletableCount++ }