Skip to content

Prettier Code Formatting

Actions
run prettier on your code
v1.0.5
Latest
Star (3)

prettier-docker-ga

Run prettier on your code from Github workflows.

Sample Github workflow (this assumes there is a prettier.config.js file in your repository):

name: Check & fix styling (prettier)

on:
  push:

jobs:
  prettier:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout code
        uses: actions/checkout@v2
        with:
          ref: ${{ github.head_ref }}

      - name: Run prettier
        uses: permafrost-dev/prettier-docker-ga@main
        with:
          args: --config prettier.config.js ./src

      - name: Commit changes
        uses: stefanzweifel/git-auto-commit-action@v4
        with:
          commit_message: Fix styling

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

Prettier Code Formatting is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

run prettier on your code
v1.0.5
Latest

Prettier Code Formatting is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.