{"_id":"prettier-plugin-ignored","_rev":"1-c751107a3a200c05de7a87e409f200e0","name":"prettier-plugin-ignored","dist-tags":{"latest":"1.0.0"},"versions":{"0.0.1":{"name":"prettier-plugin-ignored","version":"0.0.1","keywords":["prettier","prettier-plugin","configuration","format","autoformat","autoformatter","ignore","prettierignore"],"author":{"url":"https://tobysmith.uk","name":"Toby Smith","email":"contact@tobythe.dev"},"license":"ISC","_id":"prettier-plugin-ignored@0.0.1","maintainers":[{"name":"tobysmith568","email":"tobysmith568@hotmail.co.uk"}],"homepage":"https://github.com/tobysmith568/prettier-plugin-ignored","bugs":{"url":"https://github.com/tobysmith568/prettier-plugin-ignored/issues"},"dist":{"shasum":"fa4d63e921597ea8ef1580b88ce1604a5030cd01","tarball":"https://registry.npmjs.org/prettier-plugin-ignored/-/prettier-plugin-ignored-0.0.1.tgz","fileCount":6,"integrity":"sha512-7h4LrfniKXq8IHdLrQNdpQbsO+6llSfZ1ydhWxEAuxWJfaOXLKZc4Q+vK+HEjW32pRywOjy3dkGG/J1Osiyz5g==","signatures":[{"sig":"MEUCIGSNTzh2OAXEvh0BwgkoE+cmnOfxR0j4BxK2UnBXWyHnAiEA1q1xKWlBuCLW2UATgQEHHyWSdhoibZvoXDGKIAkTV5Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/prettier-plugin-ignored@0.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":5459},"main":"./dist/index.cjs","type":"module","_from":"file:builds/prettier-plugin-ignored-0.0.1.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"import":"./dist/index.mjs","require":"./dist/index.cjs"}},"scripts":{"test":"vitest","build":"rollup -c"},"_npmUser":{"name":"tobysmith568","email":"tobysmith568@hotmail.co.uk"},"prettier":"@tobysmith568/prettier-config","_resolved":"/home/runner/work/prettier-plugin-ignored/prettier-plugin-ignored/builds/prettier-plugin-ignored-0.0.1.tgz","_integrity":"sha512-7h4LrfniKXq8IHdLrQNdpQbsO+6llSfZ1ydhWxEAuxWJfaOXLKZc4Q+vK+HEjW32pRywOjy3dkGG/J1Osiyz5g==","repository":{"url":"git+https://github.com/tobysmith568/prettier-plugin-ignored.git","type":"git"},"_npmVersion":"10.8.2","description":"A Prettier plugin that adds an 'ignored' language, allowing you to ignore files without listing them in a .prettierignore file.","directories":{},"_nodeVersion":"20.17.0","dependencies":{"prettier":"3.0.0"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"^4.21.1","vitest":"^2.0.5","typescript":"^5.5.4","license-cop":"^1.4.2","rollup-plugin-delete":"^2.0.0","@license-cop/permissive":"^1.4.2","@rollup/plugin-commonjs":"^26.0.1","rollup-plugin-typescript2":"^0.36.0","@rollup/plugin-node-resolve":"^15.2.3","@tobysmith568/prettier-config":"^2.1.1"},"_npmOperationalInternal":{"tmp":"tmp/prettier-plugin-ignored_0.0.1_1724975940494_0.581922333921433","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"prettier-plugin-ignored","version":"1.0.0","description":"A Prettier plugin that adds an 'ignored' language, allowing you to ignore files without listing them in a .prettierignore file.","prettier":"@tobysmith568/prettier-config","type":"module","keywords":["prettier","prettier-plugin","configuration","format","autoformat","autoformatter","ignore","prettierignore"],"author":{"name":"Toby Smith","email":"contact@tobythe.dev","url":"https://tobysmith.uk"},"homepage":"https://github.com/tobysmith568/prettier-plugin-ignored","repository":{"type":"git","url":"git+https://github.com/tobysmith568/prettier-plugin-ignored.git"},"bugs":{"url":"https://github.com/tobysmith568/prettier-plugin-ignored/issues"},"license":"ISC","main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"import":"./dist/index.mjs","require":"./dist/index.cjs"}},"dependencies":{"prettier":"^3.0.0"},"peerDependencies":{"prettier":"3.x"},"devDependencies":{"@license-cop/permissive":"^1.4.2","@rollup/plugin-commonjs":"^26.0.1","@rollup/plugin-node-resolve":"^15.2.3","@tobysmith568/prettier-config":"^2.1.1","license-cop":"^1.4.2","rollup":"^4.21.1","rollup-plugin-delete":"^2.0.0","rollup-plugin-typescript2":"^0.36.0","typescript":"^5.5.4","vitest":"^2.0.5"},"scripts":{"build":"rollup -c","test":"vitest"},"_id":"prettier-plugin-ignored@1.0.0","_integrity":"sha512-q0wSUvUfHqg2cZ5SADkqnGK9Cv5bBn/ootjwDWAQ+8qE/iN1nklT3XHSaF6duRl6j0P4Ew70r0vAJkGZrn4/+w==","_resolved":"/home/runner/work/prettier-plugin-ignored/prettier-plugin-ignored/builds/prettier-plugin-ignored-1.0.0.tgz","_from":"file:builds/prettier-plugin-ignored-1.0.0.tgz","_nodeVersion":"20.17.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-q0wSUvUfHqg2cZ5SADkqnGK9Cv5bBn/ootjwDWAQ+8qE/iN1nklT3XHSaF6duRl6j0P4Ew70r0vAJkGZrn4/+w==","shasum":"dbff29edbdb88f8e97486299fa094914a871bff1","tarball":"https://registry.npmjs.org/prettier-plugin-ignored/-/prettier-plugin-ignored-1.0.0.tgz","fileCount":6,"unpackedSize":5511,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/prettier-plugin-ignored@1.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGZZqqKSS1Etw3GDRvHmw3R1obyZSQsKgQsIq1RhZkYoAiEA7X/DLfRjobiZf1iJtjpksAely8FNo/IWz/Jg22yWbsU="}]},"_npmUser":{"name":"tobysmith568","email":"tobysmith568@hotmail.co.uk"},"directories":{},"maintainers":[{"name":"tobysmith568","email":"tobysmith568@hotmail.co.uk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/prettier-plugin-ignored_1.0.0_1724977866939_0.13527867074165179"},"_hasShrinkwrap":false}},"time":{"created":"2024-08-29T23:59:00.359Z","modified":"2024-08-30T00:31:07.701Z","0.0.1":"2024-08-29T23:59:00.637Z","1.0.0":"2024-08-30T00:31:07.182Z"},"bugs":{"url":"https://github.com/tobysmith568/prettier-plugin-ignored/issues"},"author":{"name":"Toby Smith","email":"contact@tobythe.dev","url":"https://tobysmith.uk"},"license":"ISC","homepage":"https://github.com/tobysmith568/prettier-plugin-ignored","keywords":["prettier","prettier-plugin","configuration","format","autoformat","autoformatter","ignore","prettierignore"],"repository":{"type":"git","url":"git+https://github.com/tobysmith568/prettier-plugin-ignored.git"},"description":"A Prettier plugin that adds an 'ignored' language, allowing you to ignore files without listing them in a .prettierignore file.","maintainers":[{"name":"tobysmith568","email":"tobysmith568@hotmail.co.uk"}],"readme":"# prettier-plugin-ignored\n\nA Prettier plugin that adds an 'ignored' language, allowing you to ignore files without listing them in a `.prettierignore` file.\n\n<a href=\"https://www.npmjs.com/package/prettier-plugin-ignored\">\n  <img alt=\"npm\" src=\"https://img.shields.io/npm/v/prettier-plugin-ignored?logo=npm\">\n</a>\n\n<a href=\"https://license-cop.js.org\">\n  <img alt=\"Protected by: License-Cop\" src=\"https://license-cop.js.org/shield.svg\">\n</a>\n\n## Why is this useful?\n\nWhile Prettier configs can be shared across multiple repositories via npm packages, `.prettierignore` files cannot. This plugin solves that limitation by allowing you to configure which files should be ignored directly in the Prettier config. As a result, you can share ignored files across multiple repositories.\n\nThe plugin extends Prettier with a new language called 'ignored'. When Prettier encounters a file with this language, it formats it to be exactly as it was found, effectively ignoring it.\n\n## Installation\n\n```pwsh\nnpm install --save-dev prettier-plugin-ignored\n```\n\n## Usage\n\nAdd the plugin to your Prettier config and override specific files to use the 'ignored' parser.\n\nFor example, here I'm using it to always ignore `pnpm-lock.yaml` files and json files in `public` directories:\n\n```jsonc\n{\n  \"plugins\": [\"prettier-plugin-ignored\"],\n\n  // Other config options...\n\n  \"overrides\": [\n    {\n      \"files\": [\"pnpm-lock.yaml\", \"public/**.json\"],\n      \"options\": {\n        \"parser\": \"ignored\"\n      }\n    }\n  ]\n}\n```\n\n## License\n\nprettier-plugin-ignored is licensed under the [ISC license](./LICENSE.md).\n","readmeFilename":"README.md"}