Skip to content

Automatic formatting via Prettier#83

Open
ZZZank wants to merge 5 commits intoFilostorm:mainfrom
ZZZank:main
Open

Automatic formatting via Prettier#83
ZZZank wants to merge 5 commits intoFilostorm:mainfrom
ZZZank:main

Conversation

@ZZZank
Copy link
Copy Markdown

@ZZZank ZZZank commented Jun 6, 2025

Yes a huge PR, but 99% of which being formatted script files. These files below are the "essence" of this PR:

  • .github/workflows/prettier.yml: The formatting workflow files. After Github Actions is enabled, you can trigger this workflow by pushing commits or trigger it manually in Actions page
  • .github/actions/prettier.ts: the directories variable determines files in which files will get formatted
  • .prettierrc: config for the Prettier formatter

Prettier also has IDE support, for example there's a VSCode extension for it. Installing it will allow you to receive a more consistent format between IDE and GitHub workflow

ZZZank and others added 5 commits June 6, 2025 14:58
Co-authored-by: Filostorm <73716145+Filostorm@users.noreply.github.com>
Co-authored-by: TheSmartNoob880 <109487391+TheSmartNoob880@users.noreply.github.com>
Co-authored-by: Josiah <gtjoe51@gmail.com>
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.

1 participant