{"_id":"@putout/plugin-add-missing-parens","_rev":"3-41c804b8dee7f0da1cf4f0b5cc650b6f","name":"@putout/plugin-add-missing-parens","dist-tags":{"latest":"2.0.1"},"versions":{"1.0.0":{"name":"@putout/plugin-add-missing-parens","version":"1.0.0","keywords":["putout","putout-plugin","putout-plugin-add","parens","plugin"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-add-missing-parens@1.0.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-montag#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"37e18e8533de59e1f6521ddd2fcf6a311d6ee6a4","tarball":"https://registry.npmjs.org/@putout/plugin-add-missing-parens/-/plugin-add-missing-parens-1.0.0.tgz","fileCount":4,"integrity":"sha512-gJdjAo4yWV9RR79JBYH3CABWOi5qi9SDD2A6ip/6Pinz/WGejQWnmNie1UgAWze6uRtmsofwvCClP6ORqeXR3g==","signatures":[{"sig":"MEYCIQCp31ZS9AOVTgRgaL76E5sWC8Q06/iFrS4plX1hLLRAJgIhAPbRQRY+3X7mglo5Dt78Vh4SVFaMIJkTqSHA+UdciKII","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4530},"main":"lib/add-missing-parens.js","type":"commonjs","engines":{"node":">=18"},"gitHead":"0058ab1496ba79ce4734b98aa8fdf85453a6eea7","release":false,"scripts":{"lint":"madrun lint","test":"madrun test","report":"madrun report","coverage":"madrun coverage","fix:lint":"madrun fix:lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","watch:test":"madrun watch:test"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"changelog":false,"repository":{"url":"git+https://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"10.9.0","description":"🐊Putout plugin adds missing parens","directories":{},"_nodeVersion":"22.11.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","lerna":"^6.0.1","eslint":"^9.0.0","madrun":"^10.0.0","nodemon":"^3.0.1","@putout/test":"^11.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^23.0.0"},"peerDependencies":{"putout":">=36"},"_npmOperationalInternal":{"tmp":"tmp/plugin-add-missing-parens_1.0.0_1733136943736_0.7100540805241928","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@putout/plugin-add-missing-parens","version":"1.0.1","keywords":["putout","putout-plugin","putout-plugin-add","parens","plugin"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-add-missing-parens@1.0.1","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-add-missing-parens#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"a6c86e66e03b0ef730ac147d65910e91264a6aa2","tarball":"https://registry.npmjs.org/@putout/plugin-add-missing-parens/-/plugin-add-missing-parens-1.0.1.tgz","fileCount":4,"integrity":"sha512-Bldsoj/wpMMXJvNcITiLeHYd/n3yOdnRWJMi595TAxTVi1dDav1BV+Eec39L5X9RGj7Warj5NdG/fdunqK9n7w==","signatures":[{"sig":"MEUCIQCCW7Y+nidTNpWMXW32eR5Axd8lCU1PmmIPWa2SFtBJ4QIgfHeRUilAqYQXrNd8qHzaEBAl/sieeU/yikg6lQFJI7U=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4695},"main":"lib/add-missing-parens.js","type":"commonjs","engines":{"node":">=18"},"gitHead":"31b4760d7e2de09bb52b46b577e1c4748f7226b2","release":false,"scripts":{"lint":"madrun lint","test":"madrun test","report":"madrun report","coverage":"madrun coverage","fix:lint":"madrun fix:lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","watch:test":"madrun watch:test"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"changelog":false,"repository":{"url":"git+https://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"10.9.0","description":"🐊Putout plugin adds missing parens","directories":{},"_nodeVersion":"22.11.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","lerna":"^6.0.1","eslint":"^9.0.0","madrun":"^10.0.0","nodemon":"^3.0.1","@putout/test":"^11.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^23.0.0"},"peerDependencies":{"putout":">=36"},"_npmOperationalInternal":{"tmp":"tmp/plugin-add-missing-parens_1.0.1_1733137590344_0.6989553882080155","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@putout/plugin-add-missing-parens","version":"2.0.0","keywords":["putout","putout-plugin","putout-plugin-add","parens","plugin"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-add-missing-parens@2.0.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-add-missing-parens#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"6e4ae0de21c5321de9bee3dd399f7a135b8fcff7","tarball":"https://registry.npmjs.org/@putout/plugin-add-missing-parens/-/plugin-add-missing-parens-2.0.0.tgz","fileCount":4,"integrity":"sha512-QLpOF6DDHr/Na36r/bZQd+RFgtvAi1u3JGIHoH80jg9RkpNW2DlAjcs9HdKVdUwwulMFW5tAN9q8rhBcTPuUOg==","signatures":[{"sig":"MEYCIQDTUJ57JgyP/vl9xMRsvvzhJ6aJikCtI9vHZxGfLbpRbAIhAPasl47r5YziGldzXTufBe9ma/mjQiiV5A+FbYCB5mgP","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5394},"main":"lib/add-missing-parens.js","type":"commonjs","engines":{"node":">=18"},"gitHead":"77a424fd0d261a245edbaea5c1ecc0c3b9d50a75","release":false,"scripts":{"lint":"madrun lint","test":"madrun test","report":"madrun report","coverage":"madrun coverage","fix:lint":"madrun fix:lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","watch:test":"madrun watch:test"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"changelog":false,"repository":{"url":"git+https://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"10.9.0","description":"🐊Putout plugin adds missing parens","directories":{},"_nodeVersion":"22.12.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","lerna":"^6.0.1","eslint":"^9.0.0","madrun":"^10.0.0","nodemon":"^3.0.1","@putout/test":"^11.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^23.0.0"},"peerDependencies":{"putout":">=37"},"_npmOperationalInternal":{"tmp":"tmp/plugin-add-missing-parens_2.0.0_1734384046922_0.17241945913939571","host":"s3://npm-registry-packages-npm-production"}},"2.0.1":{"name":"@putout/plugin-add-missing-parens","version":"2.0.1","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds missing parens","homepage":"https://github.com/coderaiser/putout/tree/v36.18.0/packages/plugin-add-missing-parens#readme","main":"lib/add-missing-parens.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git+https://github.com/coderaiser/putout.git"},"scripts":{"test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report"},"dependencies":{},"keywords":["putout","putout-plugin","putout-plugin-add","parens","plugin"],"devDependencies":{"@putout/test":"^11.0.0","c8":"^10.0.0","eslint":"^9.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^23.0.0","lerna":"^6.0.1","madrun":"^10.0.0","nodemon":"^3.0.1"},"peerDependencies":{"putout":">=37"},"license":"MIT","engines":{"node":">=18"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-add-missing-parens@2.0.1","gitHead":"c1b9a90c806489c61eb1288a98d95705f8b85b9a","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"20.18.1","_npmVersion":"10.9.0","dist":{"integrity":"sha512-E2iBfcUEaPQkWO1w1/A+gsnetvnV5V9cSmd71e0ehdf3i4SBYTf8lS8m1gl04QwKikH3izXHosR9vf+wr6umLA==","shasum":"1a56d1245e05b158a597ec47b088b810d396bf86","tarball":"https://registry.npmjs.org/@putout/plugin-add-missing-parens/-/plugin-add-missing-parens-2.0.1.tgz","fileCount":4,"unpackedSize":5486,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCUFwZkwjwHdXqkrdjKxUax/c1kP9lx/sn6HzdciWhNywIhAOcPyeSbTOWv9CaJlfBMBPeFt46F8MmjdLxHECZGxznT"}]},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/plugin-add-missing-parens_2.0.1_1734902264185_0.5047560355847198"},"_hasShrinkwrap":false}},"time":{"created":"2024-12-02T10:55:43.647Z","modified":"2024-12-22T21:17:44.883Z","1.0.0":"2024-12-02T10:55:43.901Z","1.0.1":"2024-12-02T11:06:30.537Z","2.0.0":"2024-12-16T21:20:47.130Z","2.0.1":"2024-12-22T21:17:44.377Z"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"license":"MIT","homepage":"https://github.com/coderaiser/putout/tree/v36.18.0/packages/plugin-add-missing-parens#readme","keywords":["putout","putout-plugin","putout-plugin-add","parens","plugin"],"repository":{"type":"git","url":"git+https://github.com/coderaiser/putout.git"},"description":"🐊Putout plugin adds missing parens","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"readme":"# @putout/plugin-add-missing-parens [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-add-missing-parens.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-add-missing-parens\"npm\"\n\n> The JavaScript exception \"tagged template cannot be used with optional chain\" occurs when the tag expression of a tagged template literal is an optional chain, or if there's an optional chain between the tag and the template.\n>\n> (c) [**MDN**](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Bad_optional_template)\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to add missing parens. Check out in 🐊[**Putout Editor**](https://putout.vercel.app/#/gist/a8ab0ffefed3b1e7dd0f43d794ea86f4/5d45fcc2e283b5b2d0b9e155010d1114b9f0a7ee). Merged to [`@putout/plugin-parens`](https://www.npmjs.com/package/@putout/plugin-parens).\n\n## Install\n\n```\nnpm i @putout/plugin-add-missing-parens\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"add-missing-parens\": \"on\"\n    }\n}\n```\n\n## ❌ Example of incorrect code\n\n```ts\ngetConsoleLog?.()``;\nString?.raw``;\nString?.raw!``;\n\nawait asyncFn()?.filter((x) => x);\n```\n\n## ✅ Example of correct code\n\n```ts\n(getConsoleLog?.())``;\n(String?.raw)``;\nString?.raw!``;\n\n(await asyncFn())?.filter((x) => x);\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}