Skip to content

Commit

Permalink
Prettier workflow (#183)
Browse files Browse the repository at this point in the history
* add check on ci for prettier

* add files

* change readme

* rename workflow
  • Loading branch information
choden-dev authored Mar 23, 2024
1 parent c8cda89 commit 8be0161
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Prettier
on:
pull_request:
push:
branches:
- master
jobs:
Prettier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Enable corepack
run: corepack enable

- run: sudo yarn
- run: yarn prettier:ci
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Project initiated by WDCC in 2023.
- Eddie Wang (Project Manager)

## 2024 Team Members

- Kartik Malik
- Logan Bellingham
- Aziz Patel
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"lint": "eslint",
"lint-all": "eslint .",
"prettier": "prettier . --write",
"prettier:ci": "prettier . --check",
"vsc-setup": "code --install-extension dbaeumer.vscode-eslint && code --install-extension esbenp.prettier-vscode && code install-extension bradlc.vscode-tailwindcss",
"postinstall": "husky",
"lint-and-fix": "eslint . --fix",
Expand Down

0 comments on commit 8be0161

Please sign in to comment.