Skip to content

Commit

Permalink
Replace git hooks library: "pre-commit" to "husky" (#1336)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenzzy authored Jun 29, 2017
1 parent 149d9a5 commit dfb07c8
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 144 deletions.
29 changes: 12 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@
"express": "^4.15.3",
"express-graphql": "^0.6.6",
"express-jwt": "^5.3.0",
"graphql": "^0.10.1",
"history": "^4.6.1",
"graphql": "^0.10.3",
"history": "^4.6.3",
"isomorphic-fetch": "^2.2.1",
"isomorphic-style-loader": "^2.0.0",
"jsonwebtoken": "^7.4.1",
"normalize.css": "^7.0.0",
"passport": "^0.3.2",
"passport-facebook": "^2.1.1",
"pretty-error": "^2.1.0",
"pretty-error": "^2.1.1",
"prop-types": "^15.5.10",
"query-string": "^4.3.4",
"react": "^15.5.4",
Expand All @@ -47,7 +47,7 @@
"babel-cli": "^6.24.1",
"babel-core": "^6.25.0",
"babel-eslint": "^7.2.3",
"babel-loader": "^7.1.0",
"babel-loader": "^7.1.1",
"babel-plugin-istanbul": "^4.1.4",
"babel-plugin-rewire": "^1.1.0",
"babel-preset-env": "^1.5.2",
Expand All @@ -62,7 +62,6 @@
"chokidar": "^1.7.0",
"cross-env": "^5.0.1",
"css-loader": "^0.28.4",
"editorconfig-tools": "^0.1.1",
"enzyme": "^2.9.1",
"eslint": "^3.19.0",
"eslint-config-airbnb": "^15.0.1",
Expand All @@ -75,20 +74,21 @@
"file-loader": "^0.11.2",
"front-matter": "^2.1.2",
"glob": "^7.1.2",
"husky": "^0.14.1",
"lint-staged": "^4.0.0",
"markdown-it": "^8.3.1",
"mkdirp": "^0.5.1",
"mocha": "^3.4.2",
"null-loader": "^0.1.1",
"nyc": "^11.0.2",
"nyc": "^11.0.3",
"opn-cli": "^3.1.0",
"pixrem": "^3.0.2",
"pleeease-filters": "^4.0.0",
"postcss": "^6.0.3",
"postcss-calc": "^6.0.0",
"postcss-color-function": "^4.0.0",
"postcss-custom-media": "^6.0.0",
"postcss-custom-properties": "^6.0.1",
"postcss-custom-properties": "^6.1.0",
"postcss-custom-selectors": "^4.0.1",
"postcss-flexbugs-fixes": "^3.0.0",
"postcss-import": "^10.0.0",
Expand All @@ -99,18 +99,17 @@
"postcss-pseudoelements": "^4.0.0",
"postcss-selector-matches": "^3.0.1",
"postcss-selector-not": "^3.0.1",
"pre-commit": "^1.2.2",
"raw-loader": "^0.5.1",
"react-deep-force-update": "^2.0.1",
"react-error-overlay": "^1.0.7",
"react-error-overlay": "^1.0.8",
"react-hot-loader": "^3.0.0-beta.7",
"react-test-renderer": "^15.5.4",
"rimraf": "^2.6.1",
"sinon": "^2.3.4",
"stylelint": "^7.11.0",
"sinon": "^2.3.5",
"stylelint": "^7.12.0",
"stylelint-config-standard": "^16.0.0",
"stylelint-order": "^0.5.0",
"svg-url-loader": "^2.0.2",
"svg-url-loader": "^2.1.1",
"url-loader": "^0.5.9",
"webpack": "^3.0.0",
"webpack-bundle-analyzer": "^2.8.2",
Expand Down Expand Up @@ -148,10 +147,6 @@
]
},
"lint-staged": {
"*.{cmd,html,json,md,sh,txt,xml,yml}": [
"editorconfig-tools fix",
"git add"
],
"*.{js,jsx}": [
"eslint --fix",
"git add"
Expand All @@ -162,9 +157,9 @@
]
},
"scripts": {
"precommit": "lint-staged",
"lint:js": "eslint --ignore-path .gitignore --ignore-pattern \"!**/.*\" .",
"lint:css": "stylelint \"src/**/*.{css,less,scss,sss}\"",
"lint:staged": "lint-staged",
"lint": "yarn run lint:js && yarn run lint:css",
"test": "mocha",
"test:watch": "yarn run test -- --reporter min --watch",
Expand Down
Loading

0 comments on commit dfb07c8

Please sign in to comment.