Skip to content

Commit

Permalink
Merge pull request #38 from uncenter/prettier
Browse files Browse the repository at this point in the history
Add prettier config
  • Loading branch information
zachleat authored May 13, 2024
2 parents 1ec41df + cd00217 commit 81f6c2d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"useTabs": true,
"singleQuote": false,
"semi": true,
"endOfLine": "lf",
"arrowParens": "always",
"printWidth": 100
}
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"main": "eleventy-fetch.js",
"scripts": {
"test": "ava",
"sample": "node sample"
"sample": "node sample",
"format": "prettier . --write"
},
"files": [
"src/",
Expand Down Expand Up @@ -40,7 +41,8 @@
},
"homepage": "https://github.com/11ty/eleventy-fetch#readme",
"devDependencies": {
"ava": "^5.2.0"
"ava": "^5.2.0",
"prettier": "^3.1.1"
},
"dependencies": {
"debug": "^4.3.4",
Expand Down

0 comments on commit 81f6c2d

Please sign in to comment.