Skip to content

Commit

Permalink
Enable callback-return and fix issues (MetaMask#276)
Browse files Browse the repository at this point in the history
Co-authored-by: Erik Marks <25517051+rekmarks@users.noreply.github.com>
  • Loading branch information
whymarrh and rekmarks committed Sep 11, 2020
1 parent af985eb commit 2c24f74
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ module.exports = {
},
],

'callback-return': 'off',
'camelcase': 'off',
'consistent-return': 'off',
'default-case': 'off',
Expand Down
1 change: 1 addition & 0 deletions tests/TransactionController.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jest.mock('eth-query', () =>
estimateGas: (_transaction: any, callback: any) => {
if (mockFlags.estimateGas) {
callback(new Error(mockFlags.estimateGas));
return;
}
callback(undefined, '0x0');
},
Expand Down

0 comments on commit 2c24f74

Please sign in to comment.