-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrated Husky, the tool that make Git hooks easy and can prevent bad Git commits, pushes and more 🐶 *woof*! >>> Configuration The configuration file `.huskyrc.js` is placed in the project root and includes the command to run for any supported Git hook (2). It contains configs for the following hooks: - `pre-commit` - Run lint-staged (GH-12) before each commit (via `lint-staged` command) to ensure all staged files are compliant to all style guides. References: (1) https://github.com/typicode/husky (1) https://github.com/typicode/husky/blob/master/DOCS.md#supported-hooks Epic: GH-8 Must be resolved after GH-12 Resolves GH-13
- Loading branch information
1 parent
c21a58a
commit b4cac34
Showing
3 changed files
with
193 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* | ||
* Copyright (C) 2018-present Arctic Ice Studio <development@arcticicestudio.com> | ||
* Copyright (C) 2018-present Sven Greb <development@svengreb.de> | ||
* | ||
* Project: Styleguide JavaScript | ||
* Repository: https://github.com/arcticicestudio/styleguide-javascript | ||
* License: MIT | ||
*/ | ||
|
||
/** | ||
* The husky configuration. | ||
* @see https://github.com/typicode/husky | ||
*/ | ||
module.exports = { | ||
hooks: { | ||
"pre-commit": "lint-staged" | ||
} | ||
}; |
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
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