Skip to content

Commit f27efda

Browse files
author
Andrei Jiroh Eugenio Halili
committed
chore(global): add package.json + Commitlint and Husky config
Just simply copied from the starter-pack repo, as usual. Will add it to the main starter-pack-as-base-image repo soon. Signed-off-by: Andrei Jiroh Eugenio Halili <[email protected]>
1 parent 23d555a commit f27efda

File tree

5 files changed

+4366
-0
lines changed

5 files changed

+4366
-0
lines changed

.husky/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/commit-msg

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx --no-install commitlint --edit

commitlint.config.js

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
module.exports = {
2+
// yes, our apologies to Angular haters for this BS
3+
extends: ["@commitlint/config-conventional"],
4+
rules: {
5+
"scope-enum": [
6+
2,
7+
"always",
8+
[
9+
"global",
10+
"helm-charts", // BUILD, FEAT, or CHORE
11+
"github-actions", // CI, BUILD, or CHORE
12+
"mergify-config", "mergify",
13+
"deps", // CI, CHORE
14+
"deps-dev", // CI, CHORE
15+
"deps-peer", // CI, CHORE
16+
"dpes-optional", // CI, CHORE
17+
"commitlint", // CI, CHORE
18+
"commitizen", // mostly CHORE
19+
"containers", // FIX, CHORE, FEAT
20+
"virtual-machines", // FIX, FEAT, CHORE
21+
"github-org-files", // CHORE
22+
"deployment-guides", // DOCS
23+
"readme", // DOCS, CHORE
24+
"lockfiles", // CHORE
25+
"deployment-guides", // CHORE, DOCS
26+
"toolkits-packages:scripts",
27+
"toolkits-packages:dotbashrcdir",
28+
"toolkits-packages:nonsense-bullshit", // probably for our example packages
29+
"post-repo-creation",
30+
"issue-templates",
31+
"issue-labels",
32+
"pr-templates",
33+
"husky",
34+
"ignorefiles"
35+
],
36+
],
37+
},
38+
};

0 commit comments

Comments
 (0)