And even better prettier config
This commit is contained in:
parent
b4c49037c1
commit
db97c1ed52
2
.github/workflows/code-style.yml
vendored
2
.github/workflows/code-style.yml
vendored
@ -18,7 +18,7 @@ jobs:
|
|||||||
- name: Run prettier
|
- name: Run prettier
|
||||||
uses: borales/actions-yarn@v2.0.0
|
uses: borales/actions-yarn@v2.0.0
|
||||||
with:
|
with:
|
||||||
cmd: prettier
|
cmd: format
|
||||||
|
|
||||||
- name: Commit actions
|
- name: Commit actions
|
||||||
uses: stefanzweifel/git-auto-commit-action@v4
|
uses: stefanzweifel/git-auto-commit-action@v4
|
||||||
|
@ -5,7 +5,8 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev",
|
"dev": "next dev",
|
||||||
"build": "next build",
|
"build": "next build",
|
||||||
"start": "next start"
|
"start": "next start",
|
||||||
|
"format": "prettier --write \"**/*.+(js|jsx|json|css|md)\""
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"next": "10.0.3",
|
"next": "10.0.3",
|
||||||
|
@ -2,5 +2,5 @@
|
|||||||
|
|
||||||
export default (req, res) => {
|
export default (req, res) => {
|
||||||
res.statusCode = 200
|
res.statusCode = 200
|
||||||
res.json({ name: 'John Doe' })
|
res.json({ name: "John Doe" })
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user