-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Formatting #1208
Formatting #1208
Conversation
* removing critical deps * remove redundant deps, get rid of critical warnings * remove formatEther import * address matts comments
Co-authored-by: goosewobbler <goosewobbler@pm.me>
Co-authored-by: goosewobbler <goosewobbler@pm.me>
Co-authored-by: goosewobbler <432005+goosewobbler@users.noreply.github.com> Co-authored-by: Jamie M <jamie.michel@hotmail.com> Co-authored-by: Jamie M <54599757+Jamchello@users.noreply.github.com> Co-authored-by: goosewobbler <goosewobbler@pm.me> Co-authored-by: Matt Holtzman <matt.holtzman@gmail.com>
356c33c
to
d1d75f9
Compare
"/node_modules/", | ||
"<rootDir>/test/main/signers/ledger/adapter" | ||
], | ||
"roots": ["test"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wyt about excluding these types of files (perhaps .config.json
) or some such? I kind of like the readability of the previous style, especially for configuration files where compacting things into one line isn't really important
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm honestly more inclined to let Prettier do its thing everywhere - managing exemptions would be more work
@@ -4,6 +4,7 @@ | |||
"description": "System-wide web3", | |||
"main": "compiled/main", | |||
"scripts": { | |||
"prepare": "husky install", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed this in the husky setup docs but does this need to be run every time a new repo is checked out or just once and then we have the husky hooks checked into source control?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm guessing every time, otherwise it wouldn't exist?
Closing in favour of #1211 |
Using prettier, lint-staged and husky to remove formatting nits from all PRs going forward. This does not include linting, saving that for another PR.
Prettier options: https://prettier.io/docs/en/options.html
Changes
npm run format
andnpm run format:check
Prettier settings
See
.prettierrc.json
In-editor formatting
Prettier VSCode formatter - not required for development but I usually have this configured to format on save:
https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode
TODO:
package-lock.json
2166fd6
(#913)