Skip to content
🌐 🔌 The MetaMask browser extension enables browsing Ethereum blockchain enabled websites.
JavaScript CSS Other
Branch: develop
Clone or download
Gudahtt 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.
Latest commit 49a525b Dec 8, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci Add shellcheck lint (#7392) Nov 19, 2019
.github ci - install deps - limit install scripts to whitelist (#7208) Sep 25, 2019
.storybook Switch from `npm` to `yarn` (#6843) Jul 30, 2019
app Handle one specific permissions request per tab (#7620) Dec 5, 2019
development Add ESLint rule `no-async-promise-executor` (#7659) Dec 6, 2019
docs Connect distinct accounts per site (#7004) Dec 3, 2019
test React 16 upgrade (#7476) Dec 6, 2019
ui Add `react/no-unused-prop-types` ESLint rule (#7655) Dec 8, 2019
.dockerignore mascara - ready to deploy via docker Apr 6, 2017
.editorconfig Clean EditorConfig file May 23, 2019
.eslintignore Lint `.json` files (#6852) Jul 15, 2019
.eslintrc Add `react/no-unused-prop-types` ESLint rule (#7655) Dec 8, 2019
.gitattributes Add EOL conversion to gitattributes (#7494) Nov 22, 2019
.gitignore Switch from `npm` to `yarn` (#6843) Jul 30, 2019
.nvmrc Update Node version to 10.17 (#7447) Nov 17, 2019
.stylelintignore mascara - remove from project (#6283) Mar 12, 2019
.stylelintrc Remove trailing commas from JSON files (#7284) Oct 17, 2019 Update changelog for v7.7.0 Dec 3, 2019 Switch from `npm` to `yarn` (#6843) Jul 30, 2019
ISSUE_TEMPLATE Merge branch 'master' into NewUI-flat-merge-with-master Dec 7, 2017
LICENSE License Jun 22, 2018 Mission v2 May 29, 2018 Fix link on root (#7480) Nov 20, 2019 fix tos link; Jul 12, 2018
babel.config.js Set minimum Firefox version to v56.2 to support Waterfox (#7156) Sep 13, 2019
fonts Improved Ui Dev Mode Jul 1, 2016
gulpfile.js yarn lint --fix Dec 3, 2019
images Improved Ui Dev Mode Jul 1, 2016
package.json React 16 upgrade (#7476) Dec 6, 2019
yarn.lock React 16 upgrade (#7476) Dec 6, 2019

MetaMask Browser Extension

Build Status Coverage Status

You can find the latest version of MetaMask on our official website. For help using MetaMask, visit our User Support Site.

MetaMask supports Firefox, Google Chrome, and Chromium-based browsers. We recommend using the latest available browser version.

For up to the minute news, follow our Twitter or Medium pages.

To learn how to develop MetaMask-compatible applications, visit our Developer Docs.

To learn how to contribute to the MetaMask project itself, visit our Internal Docs.

Building locally

  • Install Node.js version 10
    • If you are using nvm (recommended) running nvm use will automatically choose the right node version for you.
  • Install Yarn
  • Install dependencies: yarn
  • Build the project to the ./dist/ folder with yarn dist.
  • Optionally, to start a development build (e.g. with logging and file watching) run yarn start instead.
    • To start the React DevTools and Redux DevTools Extension alongside the app, use yarn start:dev.
      • React DevTools will open in a separate window; no browser extension is required
      • Redux DevTools will need to be installed as a browser extension. Open the Redux Remote Devtools to access Redux state logs. This can be done by either right clicking within the web browser to bring up the context menu, expanding the Redux DevTools panel and clicking Open Remote DevTools OR clicking the Redux DevTools extension icon and clicking Open Remote DevTools.
        • You will also need to check the "Use custom (local) server" checkbox in the Remote DevTools Settings, using the default server configuration (host localhost, port 8000, secure connection checkbox unchecked)

Uncompressed builds can be found in /dist, compressed builds can be found in /builds once they're built.


You can read our internal docs here.

You can re-generate the docs locally by running yarn doc, and contributors can update the hosted docs by running yarn publish-docs.

Running Tests

Run tests with yarn test.

You can also test with a continuously watching process, via yarn watch.

You can run the linter by itself with yarn lint.


Architecture Diagram


yarn start

Build for Publishing

yarn dist

Writing Browser Tests

To write tests that will be run in the browser using QUnit, add your test files to test/integration/lib.

Other Docs

You can’t perform that action at this time.