1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 01:39:44 +01:00
metamask-extension/ui/hooks
Mark Stacey 3732c5f71e
Add JSDoc ESLint rules (#12112)
ESLint rules have been added to enforce our JSDoc conventions. These
rules were introduced by updating `@metamask/eslint-config` to v9.

Some of the rules have been disabled because the effort to fix all lint
errors was too high. It might be easiest to enable these rules one
directory at a time, or one rule at a time.

Most of the changes in this PR were a result of running
`yarn lint:fix`. There were a handful of manual changes that seemed
obvious and simple to make. Anything beyond that and the rule was left
disabled.
2022-01-07 12:27:33 -03:30
..
gasFeeInput Add JSDoc ESLint rules (#12112) 2022-01-07 12:27:33 -03:30
useApproveTransaction.js Add JSDoc ESLint rules (#12112) 2022-01-07 12:27:33 -03:30
useCopyToClipboard.js Add JSDoc ESLint rules (#12112) 2022-01-07 12:27:33 -03:30
useCurrencyDisplay.js Add JSDoc ESLint rules (#12112) 2022-01-07 12:27:33 -03:30
useCurrencyDisplay.test.js move metamask state selectors out of send (#11249) 2021-06-08 11:03:59 -05:00
useCurrentAsset.js Add JSDoc ESLint rules (#12112) 2022-01-07 12:27:33 -03:30
useEqualityCheck.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
useEthFiatAmount.js Add JSDoc ESLint rules (#12112) 2022-01-07 12:27:33 -03:30
useGasFeeErrors.js Add JSDoc ESLint rules (#12112) 2022-01-07 12:27:33 -03:30
useGasFeeErrors.test.js Extracting out error and warning code from useGasFeeInputs hook (#12283) 2021-10-18 17:25:35 +05:30
useGasFeeEstimates.js Add JSDoc ESLint rules (#12112) 2022-01-07 12:27:33 -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 Add JSDoc ESLint rules (#12112) 2022-01-07 12:27:33 -03:30
useIncrementedGasFees.js Add JSDoc ESLint rules (#12112) 2022-01-07 12:27:33 -03:30
useMethodData.js Add JSDoc ESLint rules (#12112) 2022-01-07 12:27:33 -03:30
useMetricEvent.js Add JSDoc ESLint rules (#12112) 2022-01-07 12:27:33 -03:30
useOriginMetadata.js Add JSDoc ESLint rules (#12112) 2022-01-07 12:27:33 -03:30
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 Add JSDoc ESLint rules (#12112) 2022-01-07 12:27:33 -03:30
useSwappedTokenValue.js Add JSDoc ESLint rules (#12112) 2022-01-07 12:27:33 -03:30
useTimeout.js Add JSDoc ESLint rules (#12112) 2022-01-07 12:27:33 -03:30
useTokenData.js Add JSDoc ESLint rules (#12112) 2022-01-07 12:27:33 -03:30
useTokenData.test.js Update ESLint config to v8 (#12886) 2021-12-09 15:36:24 -03:30
useTokenDisplayValue.js Add JSDoc ESLint rules (#12112) 2022-01-07 12:27:33 -03:30
useTokenDisplayValue.test.js Update ESLint config to v8 (#12886) 2021-12-09 15:36:24 -03:30
useTokenFiatAmount.js Add JSDoc ESLint rules (#12112) 2022-01-07 12:27:33 -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 Add JSDoc ESLint rules (#12112) 2022-01-07 12:27:33 -03:30
useTransactionDisplayData.test.js Fixing address truncation papercuts (#12330) 2021-10-13 12:54:48 -05:00
useUserPreferencedCurrency.js Add JSDoc ESLint rules (#12112) 2022-01-07 12:27:33 -03:30
useUserPreferencedCurrency.test.js Changed ETH decimal values to have 8 places for sending (#12437) 2021-11-05 07:52:03 -07:00