Browse Source

linter error fixed, conflicting rules disabled

Gleb Urvanov 4 years ago
parent
commit
e691b12394

+ 9 - 2
tests/network-tests/.eslintrc.js

@@ -1,5 +1,12 @@
 module.exports = {
     env: {
         node: true,
-    }
-}
+    },
+  rules: {
+      'no-async-promise-executor': 'off',
+      'no-useless-return': 'off',
+      'new-cap': 'off',
+      // Disabled because of the false positive bug: https://github.com/eslint/eslint/issues/11899
+      'require-atomic-updates': 'off',
+  }
+}

+ 6 - 1
tests/network-tests/src/iznik/tests/fixtures/proposalsModule.ts

@@ -14,7 +14,12 @@ import {
   OpeningId,
   StakingPolicy,
 } from '@alexandria/types/hiring'
-import { RewardPolicy, SlashingTerms, WorkerId, WorkingGroupOpeningPolicyCommitment } from '@alexandria/types/working-group'
+import {
+  RewardPolicy,
+  SlashingTerms,
+  WorkerId,
+  WorkingGroupOpeningPolicyCommitment,
+} from '@alexandria/types/working-group'
 import { WorkingGroup } from '@alexandria/types/common'
 
 export class CreateWorkingGroupLeaderOpeningFixture implements Fixture {

+ 0 - 2
tests/network-tests/src/nicaea/tests/workingGroup/impl/workingGroupModule.ts

@@ -358,8 +358,6 @@ export async function updateRoleAccount(
     newRoleAccount === createdAccount.address,
     `Unexpected role account ${newRoleAccount}, expected ${createdAccount.address}`
   )
-
-  membersKeyPairs[0] = createdAccount
 }
 
 export async function terminateApplications(