Skip to content

Commit

Permalink
Adds Prettier formatting to the repo
Browse files Browse the repository at this point in the history
  • Loading branch information
macalinao committed Nov 23, 2021
1 parent 8349df1 commit 2c5792d
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
13 changes: 11 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"dev": "babel-watch curve.js"
"dev": "babel-watch curve.js",
"prepare": "husky install"
},
"author": "",
"license": "ISC",
Expand Down Expand Up @@ -36,5 +37,13 @@
"underscore": "^1.13.1",
"web3": "^1.5.3"
},
"description": ""
"description": "",
"devDependencies": {
"husky": ">=6",
"lint-staged": ">=10",
"prettier": "^2.4.1"
},
"lint-staged": {
"*.{js,css,md,json,yml,yaml}": "prettier --write"
}
}

0 comments on commit 2c5792d

Please sign in to comment.