Skip to content

Commit

Permalink
chore(all): introduce commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
cathcheeno committed Jan 21, 2022
1 parent d7eb790 commit 48d31ed
Show file tree
Hide file tree
Showing 5 changed files with 1,822 additions and 8 deletions.
11 changes: 11 additions & 0 deletions .gitmessage
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
build(scope): Changes that affect the build system or external dependencies
chore(scope): Other changes that don't modify src or test files
ci(scope): Changes to our CI configuration files and scripts
docs(scope): Documentation only changes
feat(scope): A new feature
fix(scope): A bug fix
perf(scope): A code change that improves performance
refactor(scope): A code change that neither fixes a bug nor adds a feature
revert(scope): Reverts a previous commit
style(scope): Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
test(scope): Adding missing tests or correcting existing tests
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no -- commitlint --edit
6 changes: 6 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'scope-enum': [2, 'always', ['all', 'example', 'app', 'linter', 'nodejs', 'website']]
}
};
Loading

0 comments on commit 48d31ed

Please sign in to comment.