1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/ui/hooks
Mark Stacey ba54a3d83b
Update ESLint config to v8 (#12886)
The ESLint config has been updated to v8. The breaking changes are:

* The Prettier rule `quoteProps` has been changed from `consistent` to
`as-needed`, meaning that if one key requires quoting, only that key is
quoted rather than all keys.
* The ESLint rule `no-shadow` has been made more strict. It now
prevents globals from being shadowed as well.

Most of these changes were applied with `yarn lint:fix`. Only the
shadowing changes required manual fixing (shadowing variable names were
either replaced with destructuring or renamed).

The dependency `globalThis` was added to the list of dynamic
dependencies in the build system, where it should have been already.
This was causing `depcheck` to fail because the new lint rules required
removing the one place where `globalThis` had been erroneously imported
previously.

A rule requiring a newline between multiline blocks and expressions has
been disabled temporarily to make this PR smaller and to avoid
introducing conflicts with other PRs.
2021-12-09 15:36:24 -03:30
..
gasFeeInput Optimize rest of swaps flow (#12939) 2021-12-07 11:33:13 -06:00
useApproveTransaction.js Fix #11703 - Provide wiring for approval modal (#11711) 2021-08-02 09:07:15 -05:00
useCopyToClipboard.js Using values from shared/constants/time to represent timing values (#11241) 2021-06-10 12:27:03 -07:00
useCurrencyDisplay.js move conversion utils to shared folder (#11451) 2021-07-06 12:48:49 -05:00
useCurrencyDisplay.test.js move metamask state selectors out of send (#11249) 2021-06-08 11:03:59 -05:00
useCurrentAsset.js Integrate TokensController (#11552) 2021-09-10 12:37:19 -05:00
useEqualityCheck.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
useEthFiatAmount.js move metamask state selectors out of send (#11249) 2021-06-08 11:03:59 -05:00
useGasFeeErrors.js Extracting out error and warning code from useGasFeeInputs hook (#12283) 2021-10-18 17:25:35 +05:30
useGasFeeErrors.test.js Extracting out error and warning code from useGasFeeInputs hook (#12283) 2021-10-18 17:25:35 +05:30
useGasFeeEstimates.js Swaps optimizations (#12842) 2021-12-01 12:55:09 -03:30
useGasFeeEstimates.test.js Restore heartbeat to transaction confirmation, use isGasEstimatesLoading more broadly (#11781) 2021-08-05 18:59:58 -05:00
useI18nContext.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
useIncrementedGasFees.js Fix gas api overcalling (#12069) 2021-09-15 10:59:51 -05:00
useMethodData.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
useMetricEvent.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
useOriginMetadata.js Permission System 2.0 (#12243) 2021-12-06 19:16:49 -08:00
usePrevious.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
useSafeGasEstimatePolling.js Stop GasFeeController polling when pop closes (#11746) 2021-08-04 16:53:13 -05:00
useShouldAnimateGasEstimations.js Improve flashing behaviour for loading gas estimates (on confirm screen) (#11852) 2021-08-16 20:18:24 -02:30
useShouldShowSpeedUp.js Using values from shared/constants/time to represent timing values (#11241) 2021-06-10 12:27:03 -07:00
useSwappedTokenValue.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
useTimeout.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
useTokenData.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
useTokenData.test.js Update ESLint config to v8 (#12886) 2021-12-09 15:36:24 -03:30
useTokenDisplayValue.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
useTokenDisplayValue.test.js Update ESLint config to v8 (#12886) 2021-12-09 15:36:24 -03:30
useTokenFiatAmount.js Swaps optimizations (#12842) 2021-12-01 12:55:09 -03:30
useTokensToSearch.js Swaps optimizations (#12842) 2021-12-01 12:55:09 -03:30
useTokenTracker.js Swaps optimizations (#12842) 2021-12-01 12:55:09 -03:30
useTransactionDisplayData.js Replace hardcoded sent ether label on confirm screen (#11802) 2021-09-15 16:54:51 -05:00
useTransactionDisplayData.test.js Fixing address truncation papercuts (#12330) 2021-10-13 12:54:48 -05:00
useUserPreferencedCurrency.js Optimize rest of swaps flow (#12939) 2021-12-07 11:33:13 -06:00
useUserPreferencedCurrency.test.js Changed ETH decimal values to have 8 places for sending (#12437) 2021-11-05 07:52:03 -07:00