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

Feature/format contracts prettier plugin solidity #840

Conversation

gitcoindev
Copy link
Contributor

Resolves #839

  • enforce prettier-plugin-solidity for packages/contracts solidity files
  • improve format:all
  • upgrade prettier-plugin-solidity to 1.2.0

Plus fix prettier output for IUbiquityGovernance.sol

Copy link

ubiquibot bot commented Nov 20, 2023

@molecula451
Copy link
Member

Please, provide QA, which pattern is following?

@gitcoindev
Copy link
Contributor Author

Please, provide QA, which pattern is following?

@molecula451 sure, please check the QA demo below: I am changing one contract, one test file, two places each and prettier is fixing the layout during pre-commit stage.

prettier_qa_demo.mp4

@rndquu
Copy link
Member

rndquu commented Nov 20, 2023

images

@0x4007
Copy link
Member

0x4007 commented Nov 21, 2023

@molecula451 sure, please check the QA demo below: I am changing one contract, one test file, two places each and prettier is fixing the layout during pre-commit stage.

prettier_qa_demo.mp4

That's crazy to me that you're using vim without syntax highlighting.

For future reference, you do not need to request a review from me in this repository as most of the work involves Solidity and I am not a Solidity expert.

Copy link
Member

@0x4007 0x4007 left a comment

Choose a reason for hiding this comment

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

To be honest I couldn't make much sense of what exactly was happening in your video, but the code seems fine.

@gitcoindev
Copy link
Contributor Author

@molecula451 sure, please check the QA demo below: I am changing one contract, one test file, two places each and prettier is fixing the layout during pre-commit stage.
prettier_qa_demo.mp4

That's crazy to me that you're using vim without syntax highlighting.

🤣

For future reference, you do not need to request a review from me in this repository as most of the work involves Solidity and I am not a Solidity expert.

All right, will remember that. You were set as a default when I opened the pull request.

@gitcoindev
Copy link
Contributor Author

Merging with 2 approvals.

@gitcoindev gitcoindev closed this Nov 21, 2023
@gitcoindev gitcoindev reopened this Nov 21, 2023
@gitcoindev gitcoindev self-assigned this Nov 21, 2023
@gitcoindev gitcoindev merged commit f091cd4 into ubiquity:development Nov 21, 2023
35 checks passed
@molecula451
Copy link
Member

@gitcoindev please, wait for my full review as I am working on other sections of the repo

@gitcoindev
Copy link
Contributor Author

All right, though this one was already closed. Fortunately you should be able to easily rebase your branch on top of development as it does not affect existing code much and should not change anything in your pull request.

@molecula451
Copy link
Member

no worries, but the best ideal is to have everyones feedback before it gets merged, unless! and unless! the implementation is absolutely clear to everyones eyes

@rndquu rndquu deleted the feature/format-contracts-prettier-plugin-solidity branch November 21, 2023 12:48
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.

Enforce same line bracket opens in Solidity
4 participants