Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,6 @@ on:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow formats the code with our linter (Prettier) and then builds
prettier:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
with:
# Make sure the actual branch is checked out when running on pull requests
ref: ${{ github.event.pull_request.base.ref }}

# This is important to fetch the changes to the previous commit
fetch-depth: 0

- name: Prettify code
uses: creyD/[email protected]
with:
prettier_options: "--write src/**/*.{ts,jsx,js,css,html,json,md}"
only_changed: True
build:
# The type of runner that the job will run on
if: github.event_name != 'pull_request'
Expand Down
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx pretty-quick --staged --pattern "src/**/*.*(ts|jsx|js|css|html|json|md)"
Loading