Skip to content

Commit

Permalink
chore: change format cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
yklydxtt committed Aug 27, 2021
1 parent 822aea7 commit 1e7a1c7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
lib
LICENSE.md
.prettierignore
yarn.lock
package-lock.json
.github
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"scripts": {
"test": "",
"lint": "prettier --write \"src/**/*.js\"",
"format": "prettier --write .",
"prepublish": "babel src -d lib"
},
"repository": {
Expand Down Expand Up @@ -38,6 +38,9 @@
"pre-commit": "lint-staged"
},
"lint-staged": {
"*": [
"prettier --write --ignore-unknown"
],
"*.{js,md}": [
"prettier --write",
"git add"
Expand Down

0 comments on commit 1e7a1c7

Please sign in to comment.