Skip to content

Commit

Permalink
feat: prettier for data (EddieHubCommunity#1659)
Browse files Browse the repository at this point in the history
* feat: add prettier

* fix: missing endline

* add package-lock.json

* fix: prettier action file path
  • Loading branch information
schmelto authored Sep 2, 2022
1 parent f068e85 commit 590a451
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
node-version: "16"
- run: npm ci
- name: Prettier
run: npx prettier --write public/data/*.json
run: npx prettier --write data/*.json
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: stefanzweifel/git-auto-commit-action@v4
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CHANGELOG.md
20 changes: 20 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"dependencies": {
"mongoose": "^6.5.0",
"next": "12.2.0",
"prettier": "^2.7.1",
"react": "18.2.0",
"react-dom": "18.2.0"
},
Expand All @@ -17,7 +18,8 @@
"cypress:open": "cypress open",
"cypress:run": "cypress run",
"test:e2e": "concurrently -k --success first \"npm run cypress:run\" \"npm run start\"",
"prepare": "husky install"
"prepare": "husky install",
"format": "prettier --write ."
},
"browserslist": {
"production": [
Expand Down

0 comments on commit 590a451

Please sign in to comment.