1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +01:00
metamask-extension/ui/pages/swaps
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
..
__snapshots__ Swaps UI redesign for the View Quote page (#12950) 2021-12-07 00:21:26 -03:30
awaiting-signatures Optimize rest of swaps flow (#12939) 2021-12-07 11:33:13 -06:00
awaiting-swap Optimize rest of swaps flow (#12939) 2021-12-07 11:33:13 -06:00
build-quote Organizing storybook to echo app folder structure (#12796) 2021-12-01 11:27:57 -08:00
countdown-timer Swaps UI redesign for the View Quote page (#12950) 2021-12-07 00:21:26 -03:30
dropdown-input-pair Update ESLint config to v8 (#12886) 2021-12-09 15:36:24 -03:30
dropdown-search-list Organizing storybook to echo app folder structure (#12796) 2021-12-01 11:27:57 -08:00
exchange-rate-display Organizing storybook to echo app folder structure (#12796) 2021-12-01 11:27:57 -08:00
fee-card Swaps UI redesign for the View Quote page (#12950) 2021-12-07 00:21:26 -03:30
import-token Organizing storybook to echo app folder structure (#12796) 2021-12-01 11:27:57 -08:00
loading-swaps-quotes Optimize rest of swaps flow (#12939) 2021-12-07 11:33:13 -06:00
main-quote-summary Swaps UI redesign for the View Quote page (#12950) 2021-12-07 00:21:26 -03:30
searchable-item-list Send all swaps requests to api2, remove useNewSwapsApi boolean (#12792) 2021-11-30 19:56:28 +01:00
select-quote-popover Organizing storybook to echo app folder structure (#12796) 2021-12-01 11:27:57 -08:00
slippage-buttons Organizing storybook to echo app folder structure (#12796) 2021-12-01 11:27:57 -08:00
swaps-footer Swaps UI redesign for the View Quote page (#12950) 2021-12-07 00:21:26 -03:30
swaps-gas-customization-modal Organizing storybook to echo app folder structure (#12796) 2021-12-01 11:27:57 -08:00
view-quote Optimize rest of swaps flow (#12939) 2021-12-07 11:33:13 -06:00
index.js Swaps UI redesign for the View Quote page (#12950) 2021-12-07 00:21:26 -03:30
index.scss Swaps UI redesign for the View Quote page (#12950) 2021-12-07 00:21:26 -03:30
index.test.js Send all swaps requests to api2, remove useNewSwapsApi boolean (#12792) 2021-11-30 19:56:28 +01:00
swaps-util-test-constants.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
swaps.util.js Swaps UI redesign for the View Quote page (#12950) 2021-12-07 00:21:26 -03:30
swaps.util.test.js Send all swaps requests to api2, remove useNewSwapsApi boolean (#12792) 2021-11-30 19:56:28 +01:00