1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-29 23:58:06 +01:00
metamask-extension/ui/helpers/utils
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
..
optimism ci - enforce yarn lock deduplications (#12737) 2021-11-23 09:17:27 -10:00
build-types.js Add platform-specific build type manifest modifications (#12638) 2021-11-10 19:33:59 -03:30
common.util.js
common.util.test.js Update ESLint config to v8 (#12886) 2021-12-09 15:36:24 -03:30
confirm-tx.util.js Only show dapp suggested gas fee warning if user has not edited the fee (#11621) 2021-07-27 20:01:53 -02:30
confirm-tx.util.test.js Add gas constants (#11248) 2021-06-08 10:25:48 -05:00
conversions.util.js Fixes updates on the confirm screen. (#11788) 2021-08-06 14:31:30 -05:00
conversions.util.test.js
fetch-with-cache.js Using values from shared/constants/time to represent timing values (#11241) 2021-06-10 12:27:03 -07:00
fetch-with-cache.test.js bump @metamask/controllers to v15.0.2 and remove AbortController workaround in e2e tests (#11988) 2021-09-03 09:34:21 -05:00
formatters.js
hardware.js Create function for hardware keyring checking (#12457) 2021-10-27 18:54:18 -05:00
i18n-helper.js Fix isMainnet propType error (#12951) 2021-12-02 14:46:46 -03:30
i18n-helper.test.js
icon-factory.js adding checksum conversion (#12209) 2021-09-27 09:58:12 -04:00
is-mobile-view.js Using design system breakpoint values across ui/ 2021-09-11 11:00:46 -07:00
metric.test.js Adding the AdvancedGasFeePopover template (#12780) 2021-11-23 23:16:33 +05:30
metrics.js Adding the AdvancedGasFeePopover template (#12780) 2021-11-23 23:16:33 +05:30
storage-helpers.js
switch-direction.js
token-util.js Integrating the TokenListController to Extension (#11398) 2021-09-09 16:56:27 -04:00
transactions.util.js UX improvements to the "Permission Request" section on the approve screen (#12553) 2021-11-03 02:15:05 +04:00
transactions.util.test.js Support for type 0 transaction (#12252) 2021-10-06 23:59:57 +05:30
tx-helper.js
tx-helper.test.js
util.js "eth_signTypedData" presents fields that do not appear in 'types' filed (#12905) 2021-12-09 00:56:09 +04:00
util.test.js "eth_signTypedData" presents fields that do not appear in 'types' filed (#12905) 2021-12-09 00:56:09 +04:00
webcam-utils.js