Skip to content

Commit d963d99

Browse files
committed
IC
0 parents  commit d963d99

File tree

4 files changed

+71
-0
lines changed

4 files changed

+71
-0
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.vscode
2+
node_modules
3+
package-lock.json

commitlint.config.js

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
module.exports = {
2+
rules: {
3+
'body-leading-blank': [ 2, 'always' ],
4+
'body-max-line-length': [ 2, 'always', 72 ],
5+
'footer-leading-blank': [ 2, 'always' ],
6+
'header-max-length': [ 2, 'always', 72 ],
7+
'subject-empty': [ 2, 'never' ],
8+
'subject-full-stop': [ 2, 'never', '.' ],
9+
'type-empty': [ 2, 'never' ],
10+
'type-enum': [
11+
2,
12+
'always',
13+
[
14+
'build',
15+
'chore',
16+
'ci',
17+
'docs',
18+
'feat',
19+
'fix',
20+
'perf',
21+
'refactor',
22+
'revert',
23+
'style',
24+
'test',
25+
'wip',
26+
],
27+
],
28+
'scope-enum': [
29+
2,
30+
'always', [
31+
'web',
32+
'backend',
33+
'api'
34+
]
35+
]
36+
},
37+
};

package.json

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"name": "blog",
3+
"version": "1.0.0",
4+
"description": "Blog entries for dle.dev",
5+
"scripts": {
6+
"release": "standard-version"
7+
},
8+
"repository": {
9+
"type": "git",
10+
"url": "git+https://github.com/polaroidkidd/blog.git"
11+
},
12+
"author": "Daniel Einars",
13+
"license": "ISC",
14+
"bugs": {
15+
"url": "https://github.com/polaroidkidd/blog/issues"
16+
},
17+
"husky": {
18+
"hooks": {
19+
"commit-msg": "./vcs-check.sh"
20+
}
21+
},
22+
"homepage": "https://dle.dev",
23+
"dependencies": {
24+
"@commitlint/cli": "^8.3.5",
25+
"husky": "^4.2.1",
26+
"standard-version": "^7.1.0"
27+
}
28+
}

vcs-check.sh

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env bash
2+
3+
if [[ $(git rev-parse --abbrev-ref HEAD) == master ]]; then commitlint -E HUSKY_GIT_PARAMS; fi

0 commit comments

Comments
 (0)