Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .huskyrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"hooks": {
"pre-commit": [
"yarn test && lint-staged"
],
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
}
6 changes: 6 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"*.{ts,js,json,md}": [
"prettier --write",
"git add"
]
}
14 changes: 3 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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",
Expand Down
Loading