1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 01:39:44 +01:00
metamask-extension/development/states
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
..
account-detail-with-shapeshift-tx.json Lint .json files (#6852) 2019-07-15 11:03:22 -03:00
account-detail-with-transaction-history.json Lint .json files (#6852) 2019-07-15 11:03:22 -03:00
account-detail.json Lint .json files (#6852) 2019-07-15 11:03:22 -03:00
account-list-with-imported.json Fix development to use new currency state. 2017-03-14 17:05:27 -07:00
accounts-loose.json Fix development to use new currency state. 2017-03-14 17:05:27 -07:00
accounts.json Fix development to use new currency state. 2017-03-14 17:05:27 -07:00
add-token.json Prevent send to token warning (#6058) 2019-01-23 14:39:56 -03:30
compilation-bug.json Fix development to use new currency state. 2017-03-14 17:05:27 -07:00
conf-tx.json Lint .json files (#6852) 2019-07-15 11:03:22 -03:00
config.json Fix development to use new currency state. 2017-03-14 17:05:27 -07:00
confirm-new-ui.json Lint .json files (#6852) 2019-07-15 11:03:22 -03:00
confirm-sig-requests.json Lint .json files (#6852) 2019-07-15 11:03:22 -03:00
create-vault-password.json Delete all code related to disclaimers. 2017-02-09 18:17:50 -08:00
currency-localization.json Lint .json files (#6852) 2019-07-15 11:03:22 -03:00
custom-rpc.json Delete all code related to disclaimers. 2017-02-09 18:17:50 -08:00
empty-account-detail.json Lint .json files (#6852) 2019-07-15 11:03:22 -03:00
first-time.json Lint .json files (#6852) 2019-07-15 11:03:22 -03:00
help.json Delete all code related to disclaimers. 2017-02-09 18:17:50 -08:00
import-private-key-warning.json Fix development to use new currency state. 2017-03-14 17:05:27 -07:00
import-private-key.json Fix development to use new currency state. 2017-03-14 17:05:27 -07:00
locked.json Lint .json files (#6852) 2019-07-15 11:03:22 -03:00
lost-accounts.json Lint .json files (#6852) 2019-07-15 11:03:22 -03:00
navigate-txs.json feature: add Goerli support (#6459) 2019-04-17 15:04:49 -02:30
new-account.json Lint .json files (#6852) 2019-07-15 11:03:22 -03:00
new-vault.json Delete all code related to disclaimers. 2017-02-09 18:17:50 -08:00
notice.json notices - replace getLatestNotice with getNextNotice 2018-06-13 23:30:31 -07:00
pending-crash.json Lint .json files (#6852) 2019-07-15 11:03:22 -03:00
pending-signature.json Lint .json files (#6852) 2019-07-15 11:03:22 -03:00
pending-tx-insufficient.json Lint .json files (#6852) 2019-07-15 11:03:22 -03:00
pending-tx.json feature: add Goerli support (#6459) 2019-04-17 15:04:49 -02:30
personal-sign.json Lint .json files (#6852) 2019-07-15 11:03:22 -03:00
private-key-export-success.json Add new development states for UI development. 2017-03-21 08:52:28 -07:00
private-key-export.json Add new development states for UI development. 2017-03-21 08:52:28 -07:00
private-network.json Lint .json files (#6852) 2019-07-15 11:03:22 -03:00
restore-vault.json Fix development to use new currency state. 2017-03-14 17:05:27 -07:00
send-edit.json Lint .json files (#6852) 2019-07-15 11:03:22 -03:00
send-new-ui.json Lint .json files (#6852) 2019-07-15 11:03:22 -03:00
send.json Lint .json files (#6852) 2019-07-15 11:03:22 -03:00
shapeshift.json Lint .json files (#6852) 2019-07-15 11:03:22 -03:00
show-seed-words.json Delete all code related to disclaimers. 2017-02-09 18:17:50 -08:00
terms-and-conditions.json Fix development to use new currency state. 2017-03-14 17:05:27 -07:00
tx-list-items.json Check for invalid gas estimates from local storage (#6800) 2019-07-04 16:18:12 -03:00