Skip to content

Commit 443586f

Browse files
committed
Add pre-commit tooling and Git hooks
1 parent eb8e769 commit 443586f

6 files changed

+1039
-12
lines changed

.eslintrc

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ extends:
1010
- plugin:promise/recommended
1111
- plugin:import/errors
1212
- plugin:import/warnings
13+
- prettier
1314
parser: babel-eslint
1415
parserOptions:
1516
sourceType: module

.huskyrc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"hooks": {
3+
"pre-commit": "lint-staged"
4+
}
5+
}

.lintstagedrc.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
linters:
2+
"*.js":
3+
- "eslint --fix" # Run TSLint
4+
- "prettier --write" # Run Prettier
5+
- "npm test" # Run tests
6+
- "git add"

0 commit comments

Comments
 (0)