Skip to content

Commit

Permalink
Configure Prettier to format everything
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverjam committed Feb 15, 2021
1 parent f8cb797 commit da57c00
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/
_site/
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"main": "index.js",
"scripts": {
"dev": "eleventy --serve --quiet",
"build": "ELEVENTY_ENV=production eleventy"
"build": "ELEVENTY_ENV=production eleventy",
"postinstall": "husky install",
"format": "prettier --write ."
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -37,5 +39,8 @@
"devDependencies": {
"husky": "^5.0.9",
"prettier": "^2.2.1"
},
"prettier": {
"trailingComma": "es5"
}
}

0 comments on commit da57c00

Please sign in to comment.