{"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","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":"http://registry-npm.ywwl.com/@putout/plugin-add-missing-parens/download/@putout/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,"size":2391,"noattachment":false,"key":"/@putout/plugin-add-missing-parens/-/@putout/plugin-add-missing-parens-2.0.0.tgz"},"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"},"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":1734384047130,"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_cnpm_publish_time":1734384047130,"dist-tags":{"latest":"2.0.1"}}