1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 01:39:44 +01:00
metamask-extension/app
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
..
_locales Added Confirmation Modal for Delete Network (#6776) 2019-07-02 09:43:02 -02:30
fonts Update design of phishing warning screen 2019-02-05 13:18:24 -03:30
images Add loading view to notification.html (#6648) 2019-06-19 14:22:02 -07:00
scripts Declare variables before use (#6806) 2019-07-05 14:01:34 -03:00
vendor/trezor handle onDisconnect 2018-08-22 13:39:43 -04:00
home.html Bundle some ui dependencies separately to limit the build size of ui.js 2018-10-31 20:47:22 -02:30
loading.html refactor & change html pages 2019-05-04 18:57:19 +02:00
manifest.json Version 6.7.1 2019-06-28 02:08:18 -03:00
notification.html Add loading view to notification.html (#6648) 2019-06-19 14:22:02 -07:00
phishing.html Update design of phishing warning screen 2019-02-05 13:18:24 -03:30
popup.html Bundle some ui dependencies separately to limit the build size of ui.js 2018-10-31 20:47:22 -02:30
trezor-usb-permissions.html trezor v5 working on firefox 2018-08-05 02:43:02 -04:00
unsupport.html Rename files 2018-05-29 12:44:37 +08:00