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

Formatter Update #116

Merged
merged 2 commits into from
Oct 15, 2024
Merged

Formatter Update #116

merged 2 commits into from
Oct 15, 2024

Conversation

syntrust
Copy link
Contributor

@syntrust syntrust commented Oct 15, 2024

To ensure a consistent format for smart contract code and JS scripts across all developers' IDEs, the package.json is modified to use forge as the Solidity formatter.

  • Run npm run format:check to verify the formatting of the Solidity code.
  • Run npm run format:fix to automatically format the Solidity code.
  • Run npm run formatjs to automatically format the JavaScript files.

To prevent unintended code changes from auto-formatting, it's recommended to disable the Editor: Format On Save option in VSCode settings.

Please note that the latest version of forge does not yet support the transient keyword.

@syntrust syntrust merged commit ca20955 into main Oct 15, 2024
1 check passed
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.

3 participants