Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Add Prettier #53

Merged
merged 5 commits into from
Jul 2, 2023
Merged
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
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