Skip to content

Commit

Permalink
fix: added husky pre-commit files, extend *ignore* lists
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryT-CG committed Dec 30, 2023
1 parent 10ae445 commit 0ce9d1a
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 19 deletions.
5 changes: 2 additions & 3 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,12 @@

# misc
/.sass-cache
/.gitlab*
/connect.lock
/coverage
/libpeerconnection.log
npm-debug.log
testem.log
/typings
yarn-error.log
*.log

# e2e
/e2e/*.js
Expand Down
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"ignorePatterns": [
".angular/**",
".husky/**",
".github/**",
"coverage/**",
"dist/**",
"helm/**",
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ speed-measure-plugin*.json
# misc
/.angular/cache
/.sass-cache
/.gitlab*
/connect.lock
/coverage
/libpeerconnection.log
Expand Down
16 changes: 0 additions & 16 deletions .gitlab-ci.yml

This file was deleted.

4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install commitlint --edit $1
7 changes: 7 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

echo "[Husky] Running lint check:"
npm run lint
echo "[Husky] Running prettier check:"
npx prettier -c .
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
.angular/**
.husky/**
.docusaurus/
.github/**
.prettierignore
.browserslistrc
coverage/**
dist/**
helm/**
Expand Down

0 comments on commit 0ce9d1a

Please sign in to comment.