Skip to content

Commit

Permalink
chore(cip-1694): temporary deleted husky
Browse files Browse the repository at this point in the history
  • Loading branch information
vetalcore committed Jul 14, 2023
1 parent 43ea670 commit ec1e62d
Show file tree
Hide file tree
Showing 33 changed files with 382 additions and 371 deletions.
18 changes: 18 additions & 0 deletions .githooks/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

COLOR_RED=$(tput setaf 1)
COLOR_GREEN=$(tput setaf 2)
COLOR_RESET=$(tput sgr0)

COMMIT_MESSAGE=$(head -1 $1)
TYPES_REGEXP="build|ci|docs|feat|fix|perf|refactor|style|test|chore|revert"
COMPLETE_REGEXP="^($TYPES_REGEXP)(\(.+\))?: "

if [[ ! ${COMMIT_MESSAGE} =~ ${COMPLETE_REGEXP} ]]
then
echo -e "${COLOR_RED}[!] INVALID COMMIT MESSAGE ${COLOR_RESET}"
echo -e "${COLOR_GREEN}[+]${COLOR_RESET} It needs to follow conventional commits structure:"
echo -e " type(scope): message"
echo -e "${COLOR_GREEN}[+]${COLOR_RESET} Following types are supported: $TYPES_REGEXP"
exit 1
fi
4 changes: 0 additions & 4 deletions .husky/commit-msg

This file was deleted.

6 changes: 0 additions & 6 deletions .husky/pre-commit

This file was deleted.

1 change: 1 addition & 0 deletions ui/cip-1694/.eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
*jest.config.js
public/*
cypress/*
src/types/*.ts
**/*.js
2 changes: 1 addition & 1 deletion ui/cip-1694/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"rules": {
"@typescript-eslint/no-duplicate-enum-values": "error",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-explicit-any": "error",
"react/no-unescaped-entities": 0,
"react/react-in-jsx-scope": "off",
"unicorn/prefer-module": "off",
Expand Down
4 changes: 0 additions & 4 deletions ui/cip-1694/.husky/commit-msg

This file was deleted.

4 changes: 0 additions & 4 deletions ui/cip-1694/.husky/pre-commit

This file was deleted.

Loading

0 comments on commit ec1e62d

Please sign in to comment.