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
|
||||
uses: borales/actions-yarn@v2.0.0
|
||||
with:
|
||||
cmd: prettier
|
||||
cmd: format
|
||||
|
||||
- name: Commit actions
|
||||
uses: stefanzweifel/git-auto-commit-action@v4
|
||||
|
@ -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",
|
||||
|
@ -2,5 +2,5 @@
|
||||
|
||||
export default (req, res) => {
|
||||
res.statusCode = 200
|
||||
res.json({ name: 'John Doe' })
|
||||
res.json({ name: "John Doe" })
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user