diff --git a/.github/workflows/code-style.yml b/.github/workflows/code-style.yml index d954415..f2988ad 100644 --- a/.github/workflows/code-style.yml +++ b/.github/workflows/code-style.yml @@ -18,7 +18,7 @@ jobs: - name: Run prettier uses: borales/actions-yarn@v2.0.0 with: - cmd: prettier + cmd: format - name: Commit actions uses: stefanzweifel/git-auto-commit-action@v4 diff --git a/.prettierrc b/.prettierrc.json similarity index 100% rename from .prettierrc rename to .prettierrc.json diff --git a/README.md b/README.md index 5058f10..6a493d9 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -# ugra-hackathon_frontend \ No newline at end of file +# ugra-hackathon_frontend diff --git a/package.json b/package.json index f3f6479..98b19d4 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,8 @@ "scripts": { "dev": "next dev", "build": "next build", - "start": "next start" + "start": "next start", + "format": "prettier --write \"**/*.+(js|jsx|json|css|md)\"" }, "dependencies": { "next": "10.0.3", diff --git a/pages/api/hello.js b/pages/api/hello.js index 5b77ec0..b7c0cd3 100644 --- a/pages/api/hello.js +++ b/pages/api/hello.js @@ -2,5 +2,5 @@ export default (req, res) => { res.statusCode = 200 - res.json({ name: 'John Doe' }) + res.json({ name: "John Doe" }) }