File tree Expand file tree Collapse file tree 3 files changed +70
-188
lines changed Expand file tree Collapse file tree 3 files changed +70
-188
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,12 @@ module.exports = {
33
33
" @netlify/eslint-config-node/.prettierrc.json"
34
34
```
35
35
36
+ - Add the following ` commitlint.config.js ` to the root of the project:
37
+
38
+ ``` js
39
+ module .exports = { extends: [' @commitlint/config-conventional' ] }
40
+ ```
41
+
36
42
- Copy the ` .editorconfig ` and ` .gitattributes ` files relativity to the root of the project.
37
43
- Add the following properties to the ` package.json ` . Please replace the ` scriptsArgs ` globbing expressions to match the
38
44
files where the source JavaScript/Markdown/HTML/JSON/YAML files are located. ` npm run format ` should also be run
@@ -57,6 +63,7 @@ module.exports = {
57
63
},
58
64
"husky" : {
59
65
"hooks" : {
66
+ "commit-msg" : " commitlint -E HUSKY_GIT_PARAMS" ,
60
67
"pre-push" : " npm run format"
61
68
}
62
69
}
You can’t perform that action at this time.
0 commit comments