{"_id":"@arrowsw/prettier-config","name":"@arrowsw/prettier-config","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@arrowsw/prettier-config","version":"1.0.0","description":"Shared Prettier configuration by @arrowsw","main":"index.json","keywords":["prettier","config","prettier-config","arrowsw"],"author":{"name":"arrowsw"},"license":"MIT","peerDependencies":{"prettier":"^3.0.0"},"_id":"@arrowsw/prettier-config@1.0.0","_nodeVersion":"22.11.0","_npmVersion":"10.9.1","dist":{"integrity":"sha512-tHGxSvv+o4l4G3OlSCtTAwei/RL9iKaCcdHANoiK2cFE0YudW/B360TqzsPYDGR5WRoKObjAW/tSC6CItSvfnw==","shasum":"79224ca5d697268032df6a9f76d06297ce90ea45","tarball":"https://registry.npmjs.org/@arrowsw/prettier-config/-/prettier-config-1.0.0.tgz","fileCount":3,"unpackedSize":1806,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIBhnnFNric9iONgTsCTrUHOE52LoA78cb57Gy6fjaPJTAiAQ93j5cz0meVL4wyEfKd+UIbI2Bs1pgQ67ascIj3LlYw=="}]},"_npmUser":{"name":"hansfpc","email":"hansfpc@outlook.com","actor":{"name":"hansfpc","email":"hansfpc@outlook.com","type":"user"}},"directories":{},"maintainers":[{"name":"hansfpc","email":"hansfpc@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/prettier-config_1.0.0_1751260695691_0.6902153421775656"},"_hasShrinkwrap":false}},"time":{"created":"2025-06-30T05:18:15.602Z","1.0.0":"2025-06-30T05:18:15.858Z","modified":"2025-06-30T05:18:16.125Z"},"maintainers":[{"name":"hansfpc","email":"hansfpc@outlook.com"}],"description":"Shared Prettier configuration by @arrowsw","keywords":["prettier","config","prettier-config","arrowsw"],"author":{"name":"arrowsw"},"license":"MIT","readme":"# @arrowsw/prettier-config\n\nPrettier base configuration by [@arrowsw](https://github.com/arrowsw).\n\n## Install\n\nMake sure you have Prettier installed:\n\n```bash\nnpm install --save-dev prettier \n```\n\nInstall the package:\n\n```bash\nnpm install --save-dev @arrowsw/prettier-config\n```\n\n## Usage\n\n### .prettierrc.json (use without modification)\n\nIf you just want to use the shared config as-is, create a .prettierrc.json file with this content:\n\n```json\n\"@arrowsw/prettier-config\"\n```\n\n> **Warning**  \n> `.prettierrc.json` does not support extending or overriding rules because the JSON format lacks support for dynamic imports or merging configurations. You can’t import or modify configs in this format.\n\n\n### .prettierrc.js (recommended for extending)\n\nIf you want to add or override specific rules, use a .prettierrc.js file instead. For example:\n\n```javascript\nmodule.exports = {\n    ...require(\"@arrowsw/prettier-config\"),\n    printWidth: 100, // override only the rules you want to customize\n}\n```\n\nThis gives you full flexibility using require() to extend the base config.\n\n### What about .prettierrc.ts?\n\nPrettier does not support TypeScript config files like `.prettierrc.ts` because it lacks a built-in TypeScript parser for configuration files. You must use `.js`, `.cjs`, `.json`, or `.yaml` files instead.\n\n","readmeFilename":"README.md","_rev":"1-efd60da78966c3efb24fc0243fb056a9"}