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 account tracker - update accounts from balanceChecker contract (#6181) 2019-02-20 09:12:12 -10:00
auto-reload.js Stop reloading dapps on network change allowing dapps to decide if it should refresh or not (#6330) 2019-03-21 12:42:23 -07:00
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 GABA: Integrate AddressBookController (#5847) 2019-03-11 18:40:41 -10:00
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 Fix locale codes contains underscore will never be preferred (#6116) 2019-02-08 16:06:37 -03:30
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 Fixes popups not showing when screen size is odd (#6312) 2019-03-17 18:30:51 -02:30
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