Skip to content

Commit

Permalink
add prettier as dependency and precommit script (#1778)
Browse files Browse the repository at this point in the history
add prettier.js as dependency and precommit script
  • Loading branch information
magicznyleszek authored and pmusaraj committed May 16, 2018
1 parent 71330fa commit 6d27e3b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
locale
node_modules
static
package.json
package-lock.json
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
singleQuote: true
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"extract-text-webpack-plugin": "^1.0.1",
"file-loader": "^0.8.5",
"font-awesome": "^4.4.0",
"husky": "^0.14.3",
"immutable": "^3.4.7",
"jquery": "^3.3.1",
"jquery-ui": "1.12.1",
Expand All @@ -59,6 +60,8 @@
"opn": "^3.0.2",
"postcss": "^5.2.15",
"postcss-loader": "^1.3.3",
"prettier": "^1.12.1",
"pretty-quick": "^1.4.1",
"q": "^1.4.1",
"react": "^15.6.0",
"react-autobind": "^1.0.6",
Expand Down Expand Up @@ -96,7 +99,8 @@
"watch": "node webpack/dev.server.js",
"test-server": "node webpack/test.server.js",
"test": "webpack --config webpack/test.config.js --progress --colors && mocha-phantomjs test/tests.html",
"copy-fonts": "python ./scripts/copy_fonts.py"
"copy-fonts": "python ./scripts/copy_fonts.py",
"precommit": "pretty-quick --staged"
},
"repository": "https://github.com/kobotoolbox/kpi.git",
"author": "alex.dorey@kobotoolbox.org, esmail.fadae@kobotoolbox.org, john.milner@kobotoolbox.org",
Expand Down

0 comments on commit 6d27e3b

Please sign in to comment.