1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/app/scripts/lib
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
..
ens-ipfs refactor & change html pages 2019-05-04 18:57:19 +02:00
migrator
account-tracker.js
auto-reload.js
backend-metametrics.js Send metrics event from backend for on chain transaction failures (#6500) 2019-04-29 03:48:40 -02:30
buy-eth-url.js feature: add Goerli support (#6459) 2019-04-17 15:04:49 -02:30
cleanErrorStack.js
ComposableObservableStore.js
createDnodeRemoteGetter.js Refactor ProviderApprovalController to use rpc and publicConfigStore (#6410) 2019-05-03 13:32:05 -04:00
createLoggerMiddleware.js
createOriginMiddleware.js
createStreamSink.js Declare variables before use (#6806) 2019-07-05 14:01:34 -03:00
diagnostics-reporter.js
enums.js
extractEthjsErrorMessage.js
get-first-preferred-lang-code.js
getObjStructure.js
hex-to-bn.js
local-store.js
message-manager.js Check for unused function arguments (#6583) 2019-05-08 15:51:33 -04:00
nodeify.js lib - nodeify - correctly wrap synchronous functions 2019-03-29 12:37:40 +08:00
notification-manager.js
pending-balance-calculator.js
personal-message-manager.js Check for unused function arguments (#6583) 2019-05-08 15:51:33 -04:00
random-id.js
reportFailedTxToSentry.js
seed-phrase-verifier.js
setupFetchDebugging.js
setupMetamaskMeshMetrics.js
setupSentry.js
stream-utils.js
typed-message-manager.js
util.js