Skip to content

Commit

Permalink
chore: Move husky hook to the root package.json (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
RabbitDoge authored Mar 18, 2021
1 parent 2628c9c commit f75f147
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@
"format:check": "lerna run format:check",
"storybook:build": "lerna run storybook:build"
},
"husky": {
"hooks": {
"pre-commit": "yarn format:check",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"devDependencies": {
"@babel/core": "^7.12.16",
"@babel/preset-env": "^7.12.16",
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config-pancake/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"files": [
"lib"
],
"repository": "git@github.com:pancakeswap/eslint-config-pancake.git",
"repository": "https://github.com/pancakeswap/pancake-toolkit/tree/master/packages/eslint-config-pancake",
"license": "MIT",
"author": "RabbitDoge",
"private": false,
Expand Down
8 changes: 1 addition & 7 deletions packages/pancake-uikit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"files": [
"dist"
],
"repository": "https://github.com/pancakeswap/pancake-uikit",
"repository": "https://github.com/pancakeswap/pancake-toolkit/tree/master/packages/pancake-uikit",
"license": "MIT",
"scripts": {
"start": "yarn storybook",
Expand All @@ -20,12 +20,6 @@
"storybook:build": "build-storybook",
"test": "jest"
},
"husky": {
"hooks": {
"pre-commit": "yarn format:write",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"jest": {
"setupFilesAfterEnv": [
"<rootDir>/src/setupTests.js"
Expand Down

0 comments on commit f75f147

Please sign in to comment.