1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/ui/app/pages
Mark Stacey 49a525b9f8
Add react/no-unused-prop-types ESLint rule (#7655)
* Add `react/no-unused-prop-types` rule

All detected unused prop types have been removed. I have attempted to
ensure these props are no longer passed in either.

* Update handling of props to avoid false positive lint errors

These cases were detected by `react/no-unused-prop-types` as being
unused props, even though they were used. These minor adjustments
prevent them from being flagged as errors.

* Update unit tests

Many of these tests were just checking that specific props were passed
from containers or to a child component. These were deleted, as I can't
imagine how they'd be useful.

* Disable `react/no-unused-prop-types` in `componentWillReceiveProps

The rule `react/no-unused-prop-types` doesn't seem to be detecting
props used within `UNSAFE_componentWillReceiveProps`. The two cases
have been disabled temporarily until we can replace these unsafe
lifecycle functions.
2019-12-07 23:10:47 -04:00
..
add-token Search accounts by name (#7261) 2019-12-03 22:51:55 -03:30
confirm-add-suggested-token Add react/no-unused-prop-types ESLint rule (#7655) 2019-12-07 23:10:47 -04:00
confirm-add-token Enable indent linting via ESLint (#6936) 2019-07-31 10:17:11 -10:00
confirm-approve Add react/no-unused-prop-types ESLint rule (#7655) 2019-12-07 23:10:47 -04:00
confirm-deploy-contract Disable unnecessary curly braces in JSX (#7454) 2019-11-18 11:38:47 -03:30
confirm-send-ether Disable unnecessary curly braces in JSX (#7454) 2019-11-18 11:38:47 -03:30
confirm-send-token Folder restructure (#6304) 2019-03-21 20:33:30 -02:30
confirm-token-transaction-base Fix confirm token transaction amount display (#7081) 2019-08-31 13:26:49 -03:00
confirm-transaction Add react/no-unused-prop-types ESLint rule (#7655) 2019-12-07 23:10:47 -04:00
confirm-transaction-base Add react/no-unused-prop-types ESLint rule (#7655) 2019-12-07 23:10:47 -04:00
confirm-transaction-switch Add react/no-unused-prop-types ESLint rule (#7655) 2019-12-07 23:10:47 -04:00
connected-sites Connect distinct accounts per site (#7004) 2019-12-03 09:35:56 -08:00
create-account Add react/no-unused-prop-types ESLint rule (#7655) 2019-12-07 23:10:47 -04:00
first-time-flow Add react/no-unused-prop-types ESLint rule (#7655) 2019-12-07 23:10:47 -04:00
home React 16 upgrade (#7476) 2019-12-06 11:40:06 -04:00
keychains Add react/no-unused-prop-types ESLint rule (#7655) 2019-12-07 23:10:47 -04:00
lock Folder restructure (#6304) 2019-03-21 20:33:30 -02:30
mobile-sync yarn lint --fix 2019-12-03 17:20:55 -03:30
permissions-connect Handle one specific permissions request per tab (#7620) 2019-12-05 17:05:50 -04:00
routes React 16 upgrade (#7476) 2019-12-06 11:40:06 -04:00
send Add react/no-unused-prop-types ESLint rule (#7655) 2019-12-07 23:10:47 -04:00
settings Add react/no-unused-prop-types ESLint rule (#7655) 2019-12-07 23:10:47 -04:00
unlock-page React 16 upgrade (#7476) 2019-12-06 11:40:06 -04:00
index.js React 16 upgrade (#7476) 2019-12-06 11:40:06 -04:00
index.scss Connect distinct accounts per site (#7004) 2019-12-03 09:35:56 -08:00