Skip to content

Commit

Permalink
chore: add prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
jahow committed Apr 27, 2021
1 parent 9680ace commit 0747aad
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fixtures
4 changes: 4 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"semi": true,
"singleQuote": true
}
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,13 @@
"@babel/core": "^7.13.14",
"@babel/preset-env": "^7.13.12",
"@jest/create-cache-key-function": "^26.6.2",
"babel-jest": "^26.6.3"
"babel-jest": "^26.6.3",
"prettier": "2.2.1"
},
"scripts": {
"test": "jest"
"test": "jest",
"format:write": "prettier --write src demo",
"format:check": "prettier --check src demo"
},
"author": "",
"license": "MIT"
Expand Down

0 comments on commit 0747aad

Please sign in to comment.