Skip to content

Commit c70c48a

Browse files
committed
fix: Adding prettier as a pre-commit hook for unstaged files
1 parent 9da0b37 commit c70c48a

File tree

2 files changed

+90
-127
lines changed

2 files changed

+90
-127
lines changed

package.json

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,8 @@
44
"main": "dist/index.js",
55
"jsnext:main": "components/index.js",
66
"module": "components/index.js",
7-
"files": [
8-
"src",
9-
"dist",
10-
"README"
11-
],
7+
"files": ["src", "dist", "README"],
128
"scripts": {
13-
"lint": "eslint src/**",
14-
"lintfix": "eslint --fix src/**",
159
"prepublish": "npm run build",
1610
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
1711
"storybook": "start-storybook -p 9002",
@@ -22,17 +16,14 @@
2216
"build": "babel src --out-dir dist --copy-files",
2317
"docs": "build-storybook -o docs",
2418
"commit": "git cz",
25-
"deploy-storybook": "storybook-to-ghpages"
19+
"deploy-storybook": "storybook-to-ghpages",
20+
"format": "pretty-quick \"src/**/*.js\""
2621
},
2722
"repository": {
2823
"type": "git",
2924
"url": "https://github.com/rcdexta/react-trello"
3025
},
31-
"keywords": [
32-
"react",
33-
"trello",
34-
"board"
35-
],
26+
"keywords": ["react", "trello", "board"],
3627
"author": "RC, Prakash",
3728
"license": "MIT",
3829
"bugs": {
@@ -75,12 +66,14 @@
7566
"eslint-plugin-standard": "^3.0.1",
7667
"eventsource-polyfill": "^0.9.6",
7768
"extract-text-webpack-plugin": "^2.1.0",
69+
"husky": "^0.14.3",
7870
"jest": "^21.0.1",
7971
"jest-cli": "^21.0.1",
8072
"jsdom": "^9.12.0",
8173
"mocha": "^3.4.2",
8274
"node-sass": "^4.5.3",
8375
"prettier": "1.10.2",
76+
"pretty-quick": "^1.4.1",
8477
"react": "^16.2.0",
8578
"react-addons-test-utils": "^15.5.1",
8679
"react-dom": "^16.2.0",

0 commit comments

Comments
 (0)