-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(projects): use commitlint to check commit
- Loading branch information
Showing
8 changed files
with
42 additions
and
164 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,41 @@ | ||
module.exports = { | ||
extends: ['@commitlint/config-conventional'], | ||
rules: { | ||
'type-enum': [ | ||
2, | ||
'always', | ||
[ | ||
'feat', // A new feature | ||
'feat-wip', // Features in development, such as partial code for a certain feature | ||
'fix', // A bug fix | ||
'docs', // Documentation only changes | ||
'typo', // Code or document corrections, such as spelling errors | ||
'style', // Changes that do not affect the meaning of the code | ||
'refactor', // A code change that neither fixes a bug nor adds a feature | ||
'perf', // A code change that improves performance | ||
'optimize', // A code change that optimizes code quality | ||
'test', // Adding missing tests or correcting existing tests | ||
'build', // Changes that affect the build system or external dependencies | ||
'ci', // Changes to our CI configuration files and scripts | ||
'chore', // Other changes that don't modify src or test files | ||
'revert', // Reverts a previous commit | ||
], | ||
], | ||
'scope-enum': [ | ||
2, | ||
'always', | ||
[ | ||
'projects', // project | ||
'packages', // packages | ||
'components', // components | ||
'hooks', // hook functions | ||
'utils', // utils functions | ||
'types', // TS declaration | ||
'styles', // style | ||
'deps', // project dependencies | ||
'release', // release project | ||
'other', // other changes | ||
], | ||
], | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
export * from './changelog' | ||
export * from './cleanup' | ||
export * from './git-commit' | ||
export * from './release' | ||
export * from './router' | ||
export * from './update-pkg' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters