Skip to content

Commit b478120

Browse files
authored
Merge pull request #1335 from basics/feature/replace-branchlint
update
2 parents 84376ce + 9f830a2 commit b478120

File tree

5 files changed

+76
-106
lines changed

5 files changed

+76
-106
lines changed

.branchlintrc

Lines changed: 0 additions & 36 deletions
This file was deleted.

.husky/pre-push

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,11 @@
44
export NVM_DIR="$HOME/.nvm"
55
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
66

7-
npx branch-name-lint .branchlintrc
7+
BRANCH_NAME=$(git symbolic-ref --short HEAD)
8+
REGEX='^(feature|bugfix|hotfix|release|chore)\/[a-z0-9\-]+$'
9+
10+
if ! [[ $BRANCH_NAME =~ $REGEX ]]; then
11+
echo "Invalid branch name: $BRANCH_NAME" // EN: "Invalid branch name: $BRANCH_NAME"
12+
echo "Branch names must follow the pattern: e.g. feature/my-feature"
13+
exit 1
14+
fi

nuxt-booster.code-workspace

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
".*": false
4545
},
4646
"files.associations": {
47-
".branchlintrc": "json",
4847
".huskyrc": "json",
4948
".lintstagedrc": "json",
5049
".postcssrc": "json",

package-lock.json

Lines changed: 66 additions & 66 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@
107107
"prettier": "3.6.2",
108108
"read-pkg": "9.0.1",
109109
"serve-static": "2.2.0",
110-
"stylelint-config-recess-order": "7.1.0",
110+
"stylelint-config-recess-order": "7.2.0",
111111
"stylelint-config-standard": "39.0.0",
112-
"typescript-eslint": "8.39.0",
112+
"typescript-eslint": "8.39.1",
113113
"vite-plugin-checker": "0.10.2",
114114
"vite-svg-loader": "5.1.0",
115115
"vitepress": "1.6.4",

0 commit comments

Comments
 (0)