1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/development
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
..
notices Fix UI Dev Mode for Tx Approval 2017-02-20 23:33:21 -08:00
states Lint .json files (#6852) 2019-07-15 11:03:22 -03:00
.jsdoc.json Remove unused AppVeyor configuration (#6840) 2019-07-12 12:42:36 -03:00
announcer.js eslint --fix . 2018-07-02 18:49:33 -04:00
auto-changelog.sh Improve auto changelog script (#6753) 2019-07-11 11:08:23 -03:00
backGroundConnectionModifiers.js Check for unused function arguments (#6583) 2019-05-08 15:51:33 -04:00
genStates.js Speed up genStates script by using built-in require fn 2018-11-20 14:04:50 -03:30
index.html development - fix ui dev 2017-09-29 11:50:24 -07:00
metamaskbot-build-announce.js Remove broken image walkthrough from metamaskbot comment 2019-03-29 12:39:43 -02:30
mock-dev.js Folder restructure (#6304) 2019-03-21 20:33:30 -02:30
mockExtension.js eslint --fix . 2018-07-02 18:49:33 -04:00
README.md add READMEs to folders, re #3427 2018-03-14 15:33:22 +02:00
require-react-devtools.js Add React and Redux DevTools (#6793) 2019-07-11 12:27:06 -02:30
rollback.sh Add rollback script, move auto-changelog script (#6252) 2019-03-20 09:48:50 -02:30
run-ganache Replace deprecated shell-parallel with concurrently (#6807) 2019-07-09 14:09:31 -02:30
run-version-bump.js eslint --fix . 2018-07-02 18:49:33 -04:00
selector.js eslint --fix . 2018-07-02 18:49:33 -04:00
sentry-publish.js CI - Allow sourcemap uploads to sentry for empty version (#5403) 2018-10-10 10:24:25 -04:00
sourcemap-validator.js development - enhancement for sourcemap validator tool (#6277) 2019-03-11 09:55:43 -07:00
test.html tests - integration - get flat and mascara tests closer to compatible 2017-09-13 20:25:27 -07:00
ui-dev.js Folder restructure (#6304) 2019-03-21 20:33:30 -02:30
uiStore.js Folder restructure (#6304) 2019-03-21 20:33:30 -02:30
verify-locale-strings.js development tools - fix i18n verify tool 2018-11-04 22:18:30 -05:00
version-bump.js Version 5.0.3 (#5785) 2018-11-20 08:34:14 -10:00

Development

Several files which are needed for developing on(!) MetaMask.

Usually each files contains information about its scope / usage.