1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 01:39:44 +01:00
metamask-extension/app
Mark Stacey 04ae92a2c0
Lint .json files (#6852)
We've been using the `eslint-plugin-json` plugin for some time, but we
haven't been visiting `.json` files in the lint script. The lint script
has now been updated to incude `.json` files, which means any invalid
JSON will result in a lint error.

Unfortunately this JSON plugin doesn't seem to apply the other eslint
rules (such as `key-spacing`) to the JSON files. I wasn't able to find a
way to get that to work. Instead I manually auto-formatted each of the
locale `message.json` files, which fixed many whitespace
inconsistencies.

The `states.json` file was deleted completely, as it appears to be
unused. It wasn't a valid JSON file anyway, it was JavaScript. It looks
like a `states.js` file is automatically generated, but an old copy was
accidentally saved as `states.json` and included in the repo.

Many duplicate key errors were found and fixed in the
`development/states/` JSON files.

`package-lock.json` was added to `.eslintignore` because it was very
slow to lint, and linting it doesn't provide much value.
2019-07-15 11:03:22 -03:00
..
_locales Lint .json files (#6852) 2019-07-15 11:03:22 -03:00
fonts Update design of phishing warning screen 2019-02-05 13:18:24 -03:30
images [ImgBot] Optimize images (#1) (#6829) 2019-07-10 11:37:20 -03:00
scripts Merge pull request #6832 from MetaMask/master-rebased 2019-07-12 10:58:19 -07:00
vendor/trezor handle onDisconnect 2018-08-22 13:39:43 -04:00
home.html Bundle some ui dependencies separately to limit the build size of ui.js 2018-10-31 20:47:22 -02:30
loading.html refactor & change html pages 2019-05-04 18:57:19 +02:00
manifest.json Version 6.7.2 RC1 2019-07-04 14:14:03 -02:30
notification.html Add loading view to notification.html (#6648) 2019-06-19 14:22:02 -07:00
phishing.html Update design of phishing warning screen 2019-02-05 13:18:24 -03:30
popup.html Bundle some ui dependencies separately to limit the build size of ui.js 2018-10-31 20:47:22 -02:30
trezor-usb-permissions.html trezor v5 working on firefox 2018-08-05 02:43:02 -04:00
unsupport.html Rename files 2018-05-29 12:44:37 +08:00