Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@catchfashion/commitlint-preset
Advanced tools
A common commitlint preset for catchfashion TypeScript projects.
This preset requires global installation of commitizen
. Make sure commitizen
is installed globally:
$ npm install commitizen -g
If you want to lint commit message via Git hook to enforce commit message style in local dev environment, Follow these instructions.
In this setup, You have to install additional husky
dependency.
$ npm install @catchfashion/commitlint-preset husky --save-dev
Add the following to package.json
{
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"commitlint": {
"extends": [
"@catchfashion/commitlint-preset"
]
}
}
Done. There is no any additional steps to check commit message. commitlint will be automatically executed every commits.
If you want to lint commit message via CI environment, Follow these instructions.
In this setup, husky
is not required.
Add the following to package.json
{
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"commitlint": {
"extends": [
"@catchfashion/commitlint-preset"
]
}
}
Done. Please follow below steps to execute commitlint.
Add following to workflow.yml
steps:
- name: CommitLint
run: npx commitlint --from ${{ github.event.before || github.event.head || 'master' }} --verbose
Install additional dependency:
$ npm install @commitlint/travis-cli --save-dev
Add following to travis.yml
# travis.yml
language: node_js
script:
- commitlint-travis
Execute following to check commit message:
$ npx run commitlint --from [COMMIT_SHA1] --to [COMMIT_SHA1]
cz-cli
provides git extension to create semantic commits.
Simply use git cz
instead of using git commit
.
FAQs
commitlint rules for catchfashion projects.
The npm package @catchfashion/commitlint-preset receives a total of 8 weekly downloads. As such, @catchfashion/commitlint-preset popularity was classified as not popular.
We found that @catchfashion/commitlint-preset demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.