{"_id":"@brandlen/prettier-config","_rev":"7-621b57cf8551811689aa8847df73ca0e","name":"@brandlen/prettier-config","dist-tags":{"latest":"1.2.0"},"versions":{"0.1.1":{"name":"@brandlen/prettier-config","version":"0.1.1","keywords":["JavaScript Standard Style","style","prettier","prettierconfig","prettier-config"],"_id":"@brandlen/prettier-config@0.1.1","maintainers":[{"name":"brandon_leon","email":"awesome163@126.com"}],"dist":{"shasum":"70effd2afe6162d1e8e1ab2994f32d78e339bb96","tarball":"https://registry.npmjs.org/@brandlen/prettier-config/-/prettier-config-0.1.1.tgz","fileCount":3,"integrity":"sha512-XXCAAo6RYR2Qb6boqdYeHeXYuBTpY0ioMIlMCG4tHQrS0wY3WDEaGUJ35sj14PB4iDYSpLaEQpdUHVlhscUekg==","signatures":[{"sig":"MEYCIQDKggQTbytS7xTNIacngX3uquk2JqWxqKgHqiTzNbxe/wIhAJK6Omav9KtXZ5IgkFQHG83qS57iz54il9g6BLZirX39","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1281},"main":"src/index.cjs","type":"module","module":"src/index.js","engines":{"node":">=12"},"exports":{".":{"import":"./src/index.js","require":"./src/index.cjs"}},"gitHead":"9ccf5aab8a3cb35452941e2be85f04df47e03527","scripts":{"lint":"prettier src/ -w --cache","release":"release-it --dry-run && release-it"},"_npmUser":{"name":"brandon_leon","email":"awesome163@126.com"},"_npmVersion":"10.5.0","description":"Brandon Leon's personal prettier config","directories":{},"_nodeVersion":"18.20.0","publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"packageManager":"pnpm@8.0.0","devDependencies":{"prettier":"^3.2.5","release-it":"^14.14.0"},"peerDependencies":{"prettier":"^2.0.0 || ^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/prettier-config_0.1.1_1716117592201_0.6833853709133386","host":"s3://npm-registry-packages"}},"0.1.2":{"name":"@brandlen/prettier-config","version":"0.1.2","keywords":["JavaScript Standard Style","style","prettier","prettierconfig","prettier-config"],"author":{"name":"Brandon Leon","email":"https://github.com/Brandon-Ln"},"_id":"@brandlen/prettier-config@0.1.2","maintainers":[{"name":"brandon_leon","email":"awesome163@126.com"}],"homepage":"https://github.com/Brandon-Ln/prettier-config#readme","bugs":{"url":"https://github.com/Brandon-Ln/prettier-config/issues"},"dist":{"shasum":"4e6bd815b17bde53ffca49ec931b433080e44bb8","tarball":"https://registry.npmjs.org/@brandlen/prettier-config/-/prettier-config-0.1.2.tgz","fileCount":3,"integrity":"sha512-GRSh7lEx4NghoVdaTaBCb7DUOy467OI8xAfi8abBJll03/IcA/IMeUoqhHouSDOQAkrjkOlaxUs78ABxCcE1xQ==","signatures":[{"sig":"MEUCIFOPH0dQpGh2yBHOVehRKvzUbQzO5Clo4HKcDhyG6fxUAiEA9prup6hKQcoVcFF8t7Ff2RkydQoA7KOgCX34c2NWF6Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1536},"main":"src/index.cjs","type":"module","module":"src/index.js","engines":{"node":">=12"},"exports":{".":{"import":"./src/index.js","require":"./src/index.cjs"}},"gitHead":"03d6729f7b848f7567e29c8145b0150ef2bbc093","scripts":{"lint":"prettier src/ -w --cache","release":"release-it --dry-run --no-github.release && release-it"},"_npmUser":{"name":"brandon_leon","email":"awesome163@126.com"},"repository":{"url":"git+https://github.com/Brandon-Ln/prettier-config.git","type":"git"},"_npmVersion":"10.5.0","description":"Brandon Leon's personal prettier config","directories":{},"_nodeVersion":"18.20.0","publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"packageManager":"pnpm@8.0.0","devDependencies":{"prettier":"^3.2.5","release-it":"^14.14.0"},"peerDependencies":{"prettier":"^2.0.0 || ^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/prettier-config_0.1.2_1716119909292_0.7201799804480722","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@brandlen/prettier-config","version":"1.0.1","keywords":["prettier","prettierconfig","config","formatting"],"author":{"name":"Brandon Leon"},"license":"MIT","_id":"@brandlen/prettier-config@1.0.1","maintainers":[{"name":"brandon_leon","email":"awesome163@126.com"}],"homepage":"https://github.com/Brandon-Ln/prettier-config#readme","bugs":{"url":"https://github.com/Brandon-Ln/prettier-config/issues"},"dist":{"shasum":"4fd5366594a1bde51f67d9f9481ddb1e325bef79","tarball":"https://registry.npmjs.org/@brandlen/prettier-config/-/prettier-config-1.0.1.tgz","fileCount":7,"integrity":"sha512-O7XIIgvEfHnqf3maCNkdcDy9Y+PHY3dL0pDu4zdMuXEgDV10TMTpEdIgegDK119OtVvsBZyC4UfMSsb/WZjMeQ==","signatures":[{"sig":"MEYCIQD/vLE34v964ooIrOE3De/fOeT1RLvNXjI82qFBBMfvvAIhALQW25M6CuNl/Q8SAnGIeA8q10eL6UmtIUfcONmYqxie","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6507},"type":"module","types":"./index.d.ts","engines":{"node":">=18"},"exports":{".":{"types":"./index.d.ts","default":"./index.js"}},"gitHead":"9cccde35d619afb70210bb1ed7d8ea322a4fa0b5","scripts":{"lint":"pnpm run format:check && pnpm run package:check","test":"node --test","format":"prettier . --write","verify":"pnpm run lint && pnpm run test && pnpm run pack:check","pack:check":"node scripts/pack-check.mjs","format:check":"prettier . --check","hooks:install":"simple-git-hooks","package:check":"publint","prepublishOnly":"node scripts/assert-publish-context.mjs"},"_npmUser":{"name":"brandon_leon","email":"awesome163@126.com"},"repository":{"url":"git+https://github.com/Brandon-Ln/prettier-config.git","type":"git"},"_npmVersion":"11.16.0","description":"Personal, all-in-one Prettier configuration for JS community projects.","directories":{},"_nodeVersion":"24.18.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.16.1","devDependencies":{"publint":"^0.3.12","prettier":"^3.6.2","@commitlint/cli":"^19.8.1","simple-git-hooks":"^2.13.1","@commitlint/config-conventional":"^19.8.1"},"peerDependencies":{"prettier":">=3.0.0 <4"},"simple-git-hooks":{"commit-msg":"pnpm exec commitlint --edit $1"},"_npmOperationalInternal":{"tmp":"tmp/prettier-config_1.0.1_1783710178500_0.5921461347359842","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"@brandlen/prettier-config","version":"1.1.1","keywords":["prettier","prettierconfig","config","formatting"],"author":{"name":"Brandon Leon"},"license":"MIT","_id":"@brandlen/prettier-config@1.1.1","maintainers":[{"name":"brandon_leon","email":"awesome163@126.com"}],"homepage":"https://github.com/Brandon-Ln/prettier-config#readme","bugs":{"url":"https://github.com/Brandon-Ln/prettier-config/issues"},"bin":{"prettier-config":"bin.js"},"dist":{"shasum":"4bb107f1824ecd1e59c0e10676dc49200f5bbc85","tarball":"https://registry.npmjs.org/@brandlen/prettier-config/-/prettier-config-1.1.1.tgz","fileCount":10,"integrity":"sha512-OO59C80BuG0/43/owdY+B5CALInT2EHh6pk+SxZRQYcG7GkewbT98JahEnjK52edcNcLU/XL9ygimhSQ/OyqqQ==","signatures":[{"sig":"MEYCIQCCnf+/v6vsIRyRv5jr5S0xa771CcuSVwm+Somw1Y9TvQIhAIGWm9HPrC2JAF5ZRbx7dlo6UsrafTYldSPDwmCUo95x","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@brandlen%2fprettier-config@1.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":10913},"type":"module","types":"./index.d.ts","engines":{"node":">=18"},"exports":{".":{"types":"./index.d.ts","default":"./index.js"}},"gitHead":"e6a15963c50d848654804383c394c36340596d36","scripts":{"lint":"pnpm run format:check && pnpm run package:check","test":"node --test","format":"prettier . --write","verify":"pnpm run lint && pnpm run test && pnpm run pack:check","release":"bumpp","bootstrap":"simple-git-hooks","changelog":"conventional-changelog --preset conventionalcommits --output-unreleased --infile CHANGELOG.md --outfile CHANGELOG.md","pack:check":"node scripts/pack-check.mjs","format:check":"prettier . --check","package:check":"publint","release:prepare":"pnpm changelog && pnpm verify"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:d31796f8-b89e-4072-b1d7-a608ce74d645"}},"repository":{"url":"git+https://github.com/Brandon-Ln/prettier-config.git","type":"git"},"_npmVersion":"11.16.0","description":"Personal, all-in-one Prettier configuration for JS community projects.","directories":{},"_nodeVersion":"24.18.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.16.1","devDependencies":{"bumpp":"^11.0.0","publint":"^0.3.12","prettier":"^3.6.2","@commitlint/cli":"^19.8.1","simple-git-hooks":"^2.13.1","conventional-changelog":"^8.1.0","@commitlint/config-conventional":"^19.8.1","conventional-changelog-conventionalcommits":"^10.2.1"},"peerDependencies":{"prettier":">=3.0.0 <4"},"simple-git-hooks":{"commit-msg":"pnpm exec commitlint --edit $1"},"_npmOperationalInternal":{"tmp":"tmp/prettier-config_1.1.1_1784134957207_0.2131674197673752","host":"s3://npm-registry-packages-npm-production"}},"1.1.2":{"name":"@brandlen/prettier-config","version":"1.1.2","keywords":["prettier","prettierconfig","config","formatting"],"author":{"name":"Brandon Leon"},"license":"MIT","_id":"@brandlen/prettier-config@1.1.2","maintainers":[{"name":"brandon_leon","email":"awesome163@126.com"}],"homepage":"https://github.com/Brandon-Ln/prettier-config#readme","bugs":{"url":"https://github.com/Brandon-Ln/prettier-config/issues"},"bin":{"prettier-config":"bin.js"},"dist":{"shasum":"329b8a1e4f697e87afdd53e4cf702033bb23b3a8","tarball":"https://registry.npmjs.org/@brandlen/prettier-config/-/prettier-config-1.1.2.tgz","fileCount":10,"integrity":"sha512-lx9+swL30DCPdEfvOlCIV4CdSaE6a+/eAoJZOF4ClKA0uO5sNIe9wnavSzYFRTo8kR2ost8gH2bkK6hlGCZF4Q==","signatures":[{"sig":"MEUCIQCXb5G42IcDuVUdMnYsC441ttWw6Xv5phaKvURz3Xi7EQIgYWtEhgHnKhUQa/5Rt3pjgQWqCUEO5002iJ2OtADKcU8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@brandlen%2fprettier-config@1.1.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":11192},"type":"module","types":"./index.d.ts","engines":{"node":">=18"},"exports":{".":{"types":"./index.d.ts","default":"./index.js"}},"gitHead":"01defc28f133d3127e36a6300fa62d2e3763802a","scripts":{"lint":"pnpm run format:check && pnpm run package:check","test":"node --test","format":"prettier . --write","verify":"pnpm run lint && pnpm run test && pnpm run pack:check","release":"bumpp","bootstrap":"simple-git-hooks","changelog":"conventional-changelog --preset conventionalcommits --output-unreleased --infile CHANGELOG.md --outfile CHANGELOG.md","pack:check":"node scripts/pack-check.mjs","format:check":"prettier . --check","package:check":"publint","release:prepare":"pnpm changelog && pnpm verify"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:d31796f8-b89e-4072-b1d7-a608ce74d645"}},"repository":{"url":"git+https://github.com/Brandon-Ln/prettier-config.git","type":"git"},"_npmVersion":"11.16.0","description":"Personal, all-in-one Prettier configuration for JS community projects.","directories":{},"_nodeVersion":"24.18.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.16.1","devDependencies":{"bumpp":"^11.0.0","publint":"^0.3.12","prettier":"^3.6.2","@commitlint/cli":"^19.8.1","simple-git-hooks":"^2.13.1","conventional-changelog":"^8.1.0","@commitlint/config-conventional":"^19.8.1","conventional-changelog-conventionalcommits":"^10.2.1"},"peerDependencies":{"prettier":">=3.0.0 <4"},"simple-git-hooks":{"commit-msg":"pnpm exec commitlint --edit $1"},"_npmOperationalInternal":{"tmp":"tmp/prettier-config_1.1.2_1784135106021_0.786713873328726","host":"s3://npm-registry-packages-npm-production"}},"1.1.3":{"name":"@brandlen/prettier-config","version":"1.1.3","keywords":["prettier","prettierconfig","config","formatting"],"author":{"name":"Brandon Leon"},"license":"MIT","_id":"@brandlen/prettier-config@1.1.3","maintainers":[{"name":"brandon_leon","email":"awesome163@126.com"}],"homepage":"https://github.com/Brandon-Ln/prettier-config#readme","bugs":{"url":"https://github.com/Brandon-Ln/prettier-config/issues"},"bin":{"prettier-config":"bin.js"},"dist":{"shasum":"2b73c91cdf3cf6b558d324464a51e1ee7e2aba27","tarball":"https://registry.npmjs.org/@brandlen/prettier-config/-/prettier-config-1.1.3.tgz","fileCount":10,"integrity":"sha512-ntwsxVvDpVr/04hrgjMWrrycfhlDdqpIm70VVUKiMJRy/8DrLksygfq4vOD7ODvl4Mm7YgCuB0ngkfArdmSxyQ==","signatures":[{"sig":"MEUCIC0yoAfl2EC8hIvdP9SJKNMFNYMVKAB0NIipucZNl9ryAiEAyonU+WhPOPnfOWmtwe02kipfY0CkyFb/K+YcFG84sN8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@brandlen%2fprettier-config@1.1.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":11627},"type":"module","types":"./index.d.ts","engines":{"node":">=18"},"exports":{".":{"types":"./index.d.ts","default":"./index.js"}},"gitHead":"1aaa669b77336e34bc3e9f360ff9ef42adccbb4c","scripts":{"lint":"pnpm run format:check && pnpm run package:check","test":"node --test","format":"prettier . --write","verify":"pnpm run lint && pnpm run test && pnpm run pack:check","release":"bumpp","bootstrap":"simple-git-hooks","changelog":"conventional-changelog --preset conventionalcommits --output-unreleased --infile CHANGELOG.md --outfile CHANGELOG.md","pack:check":"node scripts/pack-check.mjs","format:check":"prettier . --check","package:check":"publint","release:prepare":"pnpm changelog && pnpm verify"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:d31796f8-b89e-4072-b1d7-a608ce74d645"}},"repository":{"url":"git+https://github.com/Brandon-Ln/prettier-config.git","type":"git"},"_npmVersion":"11.16.0","description":"Personal, all-in-one Prettier configuration for JS community projects.","directories":{},"_nodeVersion":"24.18.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.16.1","devDependencies":{"bumpp":"^11.0.0","publint":"^0.3.12","prettier":"^3.6.2","@commitlint/cli":"^19.8.1","simple-git-hooks":"^2.13.1","conventional-changelog":"^8.1.0","@commitlint/config-conventional":"^19.8.1","conventional-changelog-conventionalcommits":"^10.2.1"},"peerDependencies":{"prettier":">=3.0.0 <4"},"simple-git-hooks":{"commit-msg":"pnpm exec commitlint --edit $1"},"_npmOperationalInternal":{"tmp":"tmp/prettier-config_1.1.3_1784135578279_0.33812281273487854","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"_id":"@brandlen/prettier-config@1.2.0","bin":{"prettier-config":"bin.js"},"bugs":{"url":"https://github.com/Brandon-Ln/prettier-config/issues"},"dist":{"shasum":"ef50ce5abcb9abf13cede7088b98ba5addf9388d","tarball":"https://registry.npmjs.org/@brandlen/prettier-config/-/prettier-config-1.2.0.tgz","fileCount":10,"integrity":"sha512-xPvT/T4HVjyOm+hsbqqb4bRmd3/DUssZ2JPsndAAzDgQR7/cu5UvR9ihFzC82ou7/GzYwqmbgxy6qGH1X1cJMw==","signatures":[{"sig":"MEUCIQDDM0u132wXBcaGX8A0dQUXC95uHAsOFVT6DGWAQPW44QIgXiD3XJ3UNMOUb9MAFnCqIH4qsSNekIlv6itD21ZgJfo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDgnWVysmuJ+7dQklf3UWy0obXAD39TwlA7SmVAWOeCyQIhAN8xvEBu2bkIO2YuUKRVLvJdoAulpzvJOutFVHFMfmDH"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@brandlen%2fprettier-config@1.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":12990},"name":"@brandlen/prettier-config","type":"module","types":"./index.d.ts","author":{"name":"Brandon Leon"},"engines":{"node":">=18"},"exports":{".":{"types":"./index.d.ts","default":"./index.js"}},"gitHead":"5d64dfd92bd11085017589b190fbc2e405cbe318","license":"MIT","scripts":{"lint":"pnpm run format:check && pnpm run package:check","test":"node --test","format":"prettier . --write","verify":"pnpm run lint && pnpm run test && pnpm run pack:check","release":"bumpp","bootstrap":"simple-git-hooks","changelog":"conventional-changelog --preset conventionalcommits --output-unreleased --infile CHANGELOG.md --outfile CHANGELOG.md","pack:check":"node scripts/pack-check.mjs","format:check":"prettier . --check","package:check":"publint","release:prepare":"pnpm changelog && pnpm verify"},"version":"1.2.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:d31796f8-b89e-4072-b1d7-a608ce74d645"}},"homepage":"https://github.com/Brandon-Ln/prettier-config#readme","keywords":["prettier","prettierconfig","config","formatting"],"repository":{"url":"git+https://github.com/Brandon-Ln/prettier-config.git","type":"git"},"_npmVersion":"11.19.0","description":"Personal, all-in-one Prettier configuration for JS community projects.","directories":{},"maintainers":[{"name":"brandon_leon","email":"awesome163@126.com"}],"_nodeVersion":"24.20.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.16.1","devDependencies":{"bumpp":"^11.0.0","publint":"^0.3.12","prettier":"^3.6.2","@commitlint/cli":"^19.8.1","simple-git-hooks":"^2.13.1","conventional-changelog":"^8.1.0","@commitlint/config-conventional":"^19.8.1","conventional-changelog-conventionalcommits":"^10.2.1"},"peerDependencies":{"prettier":">=3.0.0 <4"},"simple-git-hooks":{"commit-msg":"pnpm exec commitlint --edit $1"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/prettier-config_1.2.0_1789290697819_0.3599987792199366"}}},"time":{"created":"2024-05-19T11:19:52.050Z","modified":"2026-09-13T09:11:38.292Z","0.1.1":"2024-05-19T11:19:52.356Z","0.1.2":"2024-05-19T11:58:29.466Z","1.0.1":"2026-07-10T19:02:58.640Z","1.1.1":"2026-07-15T17:02:37.364Z","1.1.2":"2026-07-15T17:05:06.189Z","1.1.3":"2026-07-15T17:12:58.453Z","1.2.0":"2026-09-13T09:11:37.914Z"},"bugs":{"url":"https://github.com/Brandon-Ln/prettier-config/issues"},"author":{"name":"Brandon Leon"},"license":"MIT","homepage":"https://github.com/Brandon-Ln/prettier-config#readme","keywords":["prettier","prettierconfig","config","formatting"],"repository":{"url":"git+https://github.com/Brandon-Ln/prettier-config.git","type":"git"},"description":"Personal, all-in-one Prettier configuration for JS community projects.","maintainers":[{"name":"brandon_leon","email":"awesome163@126.com"}],"readme":"# @brandlen/prettier-config\n\n[English](README.md) | 简体中文\n\n带有个人意见偏好的项目共享 [Prettier](https://prettier.io/) 配置。\n\n它只使用 Prettier 3 的内置语言支持，因此可直接格式化 JavaScript、TypeScript、Vue SFC、JSON、CSS 与 Markdown；不为这些语言安装额外 parser 或插件。\n\n## 安装\n\n```bash\npnpm add -D prettier @brandlen/prettier-config\n```\n\n在项目的 `package.json` 中引用：\n\n```json\n{\n  \"prettier\": \"@brandlen/prettier-config\",\n  \"scripts\": {\n    \"format\": \"prettier . --write\",\n    \"format:check\": \"prettier . --check\"\n  }\n}\n```\n\n若项目需要个别覆盖，使用 ESM 配置文件：\n\n```js\nimport base from '@brandlen/prettier-config'\n\n/** @type {import('prettier').Config} */\nexport default {\n  ...base,\n  proseWrap: 'always',\n}\n```\n\n## 格式化风格\n\n- Markdown 保留作者已有的段落换行；代码块仍按对应的内置 parser 格式化。\n- 不配置 `parser`，由 Prettier 按文件扩展名选择 parser。\n\n共享配置将 `printWidth` 固定为 100；`tabWidth`、`useTabs` 与 `endOfLine` 有意不在本包定义，以便 Prettier 读取每个项目自己的 `.editorconfig`。\n\n在项目根目录生成内置模板：\n\n```bash\nnpx @brandlen/prettier-config init\n```\n\n命令会创建 `.prettierignore` 和 `.editorconfig`；若文件已存在则保留原内容，不会覆盖。\n\n若要在 CI 中检查两个文件是否存在，且不创建或修改文件，可使用检查模式：\n\n```bash\nnpx @brandlen/prettier-config init --check\n```\n\n两个文件均存在时，命令以状态码 `0` 退出；否则会列出缺失文件，并以状态码 `1` 退出。\n\n## 忽略文件\n\nPrettier 会自动读取项目根目录的 `.gitignore` 与 `.prettierignore`。模板默认忽略各包管理器 lockfile、依赖目录、构建产物、缓存、source map 和压缩文件；可按项目需要追加规则。\n\n## 开发与发布\n\n运行基于 Bumpp 的发布命令需要 Node 20.19 或更高版本。提交前运行：\n\n```bash\ncorepack enable\npnpm install --frozen-lockfile\npnpm verify\n```\n\n`pnpm install` 会安装仓库本地的 `commit-msg` hook。提交信息必须遵循 [Conventional Commits](https://www.conventionalcommits.org/)，例如 `feat: add shared config`；Pull Request 也会在 CI 中接受相同校验。\n\n从最新且干净的 `main` 分支发布：\n\n```bash\npnpm release\n```\n\n交互式命令会选择 SemVer 版本、根据 Conventional Commits 重建 `CHANGELOG.md`、执行 `pnpm verify`、创建一个发布提交和 `vX.Y.Z` tag，然后推送它们。不要手动运行 `npm publish`。\n","readmeFilename":"README.zh-CN.md"}