1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-24 02:58:09 +01:00
metamask-extension/ui/app/helpers/utils
Mark Stacey 95f198550e
Declare variables before use (#6806)
While working on #6805, I noticed that many variables were being used
before they were declared. Technically this worked fine in practice
because we were using the `transform-es2015-block-scoping` Babel plugin,
which transforms `let` and `const` to `var`, which is hoisted. However,
after removing that Babel transformation, many things broke.

All instances of variables or classes being used before declared have
been fixed.

The `no-use-before-define` eslint rule has been added to catch these
cases going forward. The rule is disabled for function declarations for
the moment, because those are always hoisted. We could disable that too
if we want to, but it's purely stylistic and would require a lot more
changes.
2019-07-05 14:01:34 -03:00
..
common.util.js Folder restructure (#6304) 2019-03-21 20:33:30 -02:30
common.util.test.js Folder restructure (#6304) 2019-03-21 20:33:30 -02:30
confirm-tx.util.js Revert to providing inline defaults in getHexGasTotal and increaseLastGasPrice (#6361) 2019-03-29 12:47:58 -02:30
confirm-tx.util.test.js Folder restructure (#6304) 2019-03-21 20:33:30 -02:30
conversion-util.js Declare variables before use (#6806) 2019-07-05 14:01:34 -03:00
conversion-util.test.js Folder restructure (#6304) 2019-03-21 20:33:30 -02:30
conversions.util.js Improved UX for sweeping accounts (#6488) 2019-05-20 14:08:08 -02:30
fetch-with-cache.js 4byte fallback (#6551) 2019-06-18 09:47:14 -02:30
fetch.js 4byte fallback (#6551) 2019-06-18 09:47:14 -02:30
fetch.test.js 4byte fallback (#6551) 2019-06-18 09:47:14 -02:30
formatters.js Folder restructure (#6304) 2019-03-21 20:33:30 -02:30
i18n-helper.js Folder restructure (#6304) 2019-03-21 20:33:30 -02:30
metametrics.util.js MetaMetrics documentation (#6624) 2019-05-20 15:02:26 -02:30
token-util.js Fixes display of confirm screen token decimals by not relying on confirmTransaction state. 2019-06-28 01:51:33 -03:00
transactions.util.js Fixes display of confirm screen token decimals by not relying on confirmTransaction state. 2019-06-28 01:51:33 -03:00
transactions.util.test.js Folder restructure (#6304) 2019-03-21 20:33:30 -02:30
util.js Check for unused function arguments (#6583) 2019-05-08 15:51:33 -04:00