-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#1852 Try to configure pre-commit hook
- Loading branch information
1 parent
612fff2
commit bf18707
Showing
2 changed files
with
10 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
], | ||
"scripts": { | ||
"postinstall": "husky install", | ||
"precommit": "lint-staged --allow-empty", | ||
"precommit": "yarn workspaces foreach -pv run prettier:write lint-staged --allow-empty", | ||
"prepush": "yarn workspaces foreach -pv run test:eslint", | ||
"build": "yarn workspaces foreach -ptvR --from ketcher-react-app run build", | ||
"build:demo": "yarn workspaces foreach -ptvR --from demo run build", | ||
|
@@ -39,5 +39,10 @@ | |
"resolutions": { | ||
"react-error-overlay": "6.0.9" | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "yarn workspaces foreach -pv run prettier:write lint-staged --allow-empty" | ||
} | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters