Add prettify command and run it

This commit is contained in:
Aarni Koskela
2019-10-24 18:00:52 +03:00
parent ff33224216
commit 5a42210194
11 changed files with 39 additions and 33 deletions

View File

@@ -9,7 +9,8 @@
"build": "next build && next export",
"dev": "SERVER=http://localhost:9000/ ENV=development next",
"prod": "ENV=production next build && next export",
"lint": "eslint --ext .jsx --ext .js ."
"lint": "eslint --ext .jsx --ext .js .",
"prettify": "prettier --write {components,pages,styles}/{*,**/*}.js*"
},
"dependencies": {
"@zeit/next-css": "^1.0.1",
@@ -37,5 +38,8 @@
"eslint-config-prettier": "^6.3.0",
"eslint-plugin-react": "^7.14.3",
"prettier": "^1.18.2"
},
"prettier": {
"trailingComma": "es5"
}
}