Skip to content

Commit

Permalink
Add prettier and pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
svk31 committed Mar 5, 2018
1 parent 88e1a1a commit 860f371
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"tabWidth": 4,
"bracketSpacing": false
}
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"prebrowserify": "mkdirp build",
"browserify": "cross-env NODE_ENV=production browserify --full-paths dist/browser.js --standalone bitshares_js -o build/bitsharesjs.js -d",
"postbrowserify": "cross-env NODE_ENV=production uglifyjs --compress --mangle --sequences --drop_console --output build/bitsharesjs.min.js -- build/bitsharesjs.js",
"precommit": "pretty-quick --staged",
"prepublish": "npm run build",
"doc": "esdoc -c esdoc.json",
"example:transfer": "babel-node examples/transfer",
Expand Down Expand Up @@ -74,6 +75,8 @@
"eslint": "^3.14.1",
"mkdirp": "^0.5.1",
"mocha": "^3.2.0",
"prettier": "^1.11.1",
"pretty-quick": "^1.4.1",
"rimraf": "^2.6.1",
"uglify-js": "^3.3.10"
}
Expand Down

0 comments on commit 860f371

Please sign in to comment.