{"_id":"l-fe-commitlint-config","name":"l-fe-commitlint-config","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"l-fe-commitlint-config","version":"1.0.0","main":"index.js","description":"Git 规范","keywords":["commit","lint"],"author":{"name":"l"},"homepage":"https://github.com/li-ang-Z/l-fe-spec#readme","license":"ISC","repository":{"type":"git","url":"git+https://github.com/li-ang-Z/l-fe-spec.git"},"bugs":{"url":"https://github.com/li-ang-Z/l-fe-spec/issues"},"dependencies":{"conventional-changelog-conventionalcommits":"^4.5.0"},"gitHead":"d59b3e3c847f6da85dd3534f5a86399e5c8849f4","_id":"l-fe-commitlint-config@1.0.0","_nodeVersion":"16.20.2","_npmVersion":"lerna/6.6.2/node@v16.20.2+x64 (win32)","dist":{"integrity":"sha512-VPjdOfNRTeHDgZnnB7hbOZB6ElGg3CYha3Vbkway5u2vQS6zF0L1NaGHU2ukp3n0+j+yDeqgJmkR811jB2V8fw==","shasum":"0457c0d7802f534f1bd7a41c8f71c44edc0c671d","tarball":"https://registry.npmjs.org/l-fe-commitlint-config/-/l-fe-commitlint-config-1.0.0.tgz","fileCount":4,"unpackedSize":3234,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIFESostRMKUCzNGLMOpLls5McBbPO3v/4OGXixJTPSpbAiBX1sxjScJgq08ILSA80qjK/wNaXZ1utgV99hUez/O4QA=="}]},"_npmUser":{"name":"ye_feng","email":"704786716@qq.com"},"directories":{},"maintainers":[{"name":"ye_feng","email":"704786716@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/l-fe-commitlint-config_1.0.0_1783607624783_0.2958805591021998"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-09T14:33:44.718Z","1.0.0":"2026-07-09T14:33:44.911Z","modified":"2026-07-09T14:33:45.158Z"},"maintainers":[{"name":"ye_feng","email":"704786716@qq.com"}],"description":"Git 规范","homepage":"https://github.com/li-ang-Z/l-fe-spec#readme","keywords":["commit","lint"],"repository":{"type":"git","url":"git+https://github.com/li-ang-Z/l-fe-spec.git"},"author":{"name":"l"},"bugs":{"url":"https://github.com/li-ang-Z/l-fe-spec/issues"},"license":"ISC","readme":"# `l-fe-commitlint-config`\n\n> Git 规范\n\n支持配套的 [commitlint 配置](https://commitlint.js.org/#/concepts-shareable-config)，用于对 `git commit message` 进行校验。\n\n## 安装\n\n使用时，需要安装 [@commitlint/cli](https://www.npmjs.com/package/@commitlint/cli)：\n\n```bash\nnpm install l-fe-commitlint-config @commitlint/cli --save-dev\n```\n\n## 使用\n\n在 `commitlint.config.js` 中集成本包:\n\n```javascript\nmodule.exports = {\n\textends: ['l-fe-commitlint-config'],\n};\n```\n\n## 设置 git hook\n\n可通过 [husky](https://www.npmjs.com/package/husky) 设置在 `git commit` 时触发 `commitlint`。\n\n首先安装 husky：\n\n```bash\nnpm install husky --save-dev\n```\n\n然后执行添加`commit-msg`:\n\n```bash\nnpx husky add .husky/commit-msg 'npx commitlint --edit $1'\n```\n\n更多信息可参考 [commitlint 文档](https://commitlint.js.org/#/guides-local-setup?id=install-husky)。\n","readmeFilename":"README.md","_rev":"1-2a3623148b654fcde78ac95468900a1b"}