{"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":"http://registry-npm.ywwl.com/@putout/plugin-add-missing-parens/download/@putout/plugin-add-missing-parens-2.0.1.tgz","fileCount":4,"unpackedSize":5486,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCUFwZkwjwHdXqkrdjKxUax/c1kP9lx/sn6HzdciWhNywIhAOcPyeSbTOWv9CaJlfBMBPeFt46F8MmjdLxHECZGxznT"}],"size":2424,"noattachment":false,"key":"/@putout/plugin-add-missing-parens/-/@putout/plugin-add-missing-parens-2.0.1.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/plugin-add-missing-parens_2.0.1_1734902264185_0.5047560355847198"},"_hasShrinkwrap":false,"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","publish_time":1734902264377,"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_cnpm_publish_time":1734902264377,"dist-tags":{"latest":"2.0.1"}}