Skip to content

Commit

Permalink
Add Prettier (#53)
Browse files Browse the repository at this point in the history
* Create .prettierignore

* Update ci.yml

* Update ci.yml

* Update package.json

* Apply Prettier fixes
  • Loading branch information
jbelien authored Jul 2, 2023
1 parent be946f7 commit 9476354
Show file tree
Hide file tree
Showing 13 changed files with 438 additions and 302 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,15 @@ jobs:
with:
sarif_file: eslint-results.sarif
wait-for-processing: true

nodejs-prettier:
name: Prettier
runs-on: ubuntu-latest
needs: [nodejs-build]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install dependencies & ESLint SARIF formatter
run: npm install
- name: Run Prettier
run: npm run prettier
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.next
out
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
"lint": "next lint",
"lint:fix": "next lint --fix",
"prettier": "npx prettier --check \"**/*.{js,jsx,ts,tsx,json,css,scss,md}\"",
"prettier:fix": "npx prettier --write \"**/*.{js,jsx,ts,tsx,json,css,scss,md}\""
},
"browserslist": "defaults, not ie <= 11",
"dependencies": {
Expand Down
Loading

0 comments on commit 9476354

Please sign in to comment.