Skip to content
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

Establish code style and fix errors in existing codebase #299

Merged
merged 22 commits into from
Mar 11, 2021

Conversation

jdtzmn
Copy link
Contributor

@jdtzmn jdtzmn commented Mar 10, 2021

This PR includes a number of changes to help ensure and maintain a consistent code style:

  • Set up ESLint and Prettier configurations
  • Add helper scripts to package.json for linting and formatting
  • Define an editor-agnostic file format (read more here)
  • Fix all existing code style errors
  • Configure Git precommit hook to format and test on every commit
  • Document the new code style

Closes #285.

@jdtzmn jdtzmn requested a review from jasonpaulos March 10, 2021 21:21
@jdtzmn jdtzmn force-pushed the jacob/code-style branch 3 times, most recently from f72a073 to 9c11304 Compare March 11, 2021 18:19
jdtzmn and others added 9 commits March 11, 2021 13:30
* Remove `MultisigTransaction` overrides that treat non-payment transactions differently

* Add new transaction fields to multisig blobs found in tests and re-sign comparison blobs where needed

* Verify read-only methods on `Transaction` work for `MultisigTransaction`s

* Override inherited `Transaction` methods that mutate multisig transactions to throw an error

* Override `signTxn` on `MultisigTransaction` to throw an error
* Add TypeScript extension to `lint-staged` config file
* Fix Compile class bug that was introduced during linter fixes
Copy link
Contributor

@jasonpaulos jasonpaulos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! The necessary builds have passed, so feel free to merge.

@jdtzmn jdtzmn merged commit 14c0545 into develop Mar 11, 2021
@jdtzmn jdtzmn deleted the jacob/code-style branch March 11, 2021 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Establish consistent code style
3 participants