Permalink
Browse files

chore: upgrade husky and lint-staged (#144)

  • Loading branch information...
ikeryo1182 authored and JamesHenry committed Jan 29, 2019
1 parent e291ec3 commit 5017c115f232b42285c61ae53dcf531d66a9c4b5
Showing with 183 additions and 41 deletions.
  1. +8 −0 .huskyrc
  2. +6 −0 .lintstagedrc
  3. +3 −11 package.json
  4. +166 −30 yarn.lock
@@ -0,0 +1,8 @@
{
"hooks": {
"pre-commit": [
"yarn test && lint-staged"
],
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
}
@@ -0,0 +1,6 @@
{
"*.{ts,js,json,md}": [
"prettier --write",
"git add"
]
}
@@ -21,22 +21,14 @@
"test": "lerna run test --parallel",
"build": "lerna run build",
"clean": "lerna clean && lerna run clean",
"precommit": "yarn test && lint-staged",
"lint": "eslint . --ext .js,.ts",
"lint-fix": "eslint . --ext .js,.ts --fix",
"cz": "git-cz",
"commitmsg": "commitlint -E GIT_PARAMS",
"check-format": "prettier --list-different \"./**/*.{ts,js,json,md}\"",
"format": "prettier --write \"./**/*.{ts,js,json,md}\"",
"integration-tests": "docker-compose -f tests/integration/docker-compose.yml up",
"kill-integration-test-containers": "docker-compose -f tests/integration/docker-compose.yml down -v --rmi local"
},
"lint-staged": {
"*.{ts,js,json,md}": [
"prettier --write",
"git add"
]
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
@@ -65,13 +57,13 @@
"@types/semver": "^5.5.0",
"cz-conventional-changelog": "2.1.0",
"eslint": "^5.12.1",
"eslint-plugin-jest": "^22.1.3",
"eslint-plugin-eslint-plugin": "^2.0.1",
"eslint-plugin-jest": "^22.1.3",
"glob": "7.1.2",
"husky": "0.14.3",
"husky": "^1.3.1",
"jest": "23.6.0",
"lerna": "^3.10.5",
"lint-staged": "7.3.0",
"lint-staged": "8.1.0",
"lodash.isplainobject": "4.0.6",
"prettier": "^1.14.3",
"rimraf": "^2.6.3",
Oops, something went wrong.

0 comments on commit 5017c11

Please sign in to comment.