{"_id":"@putout/plugin-add-missing-parens","_rev":"4159963","name":"@putout/plugin-add-missing-parens","description":"🐊Putout plugin adds missing parens","dist-tags":{"latest":"2.0.1"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"time":{"modified":"2026-03-01T20:36:59.000Z","created":"2024-12-02T10:55:43.901Z","2.0.1":"2024-12-22T21:17:44.377Z","2.0.0":"2024-12-16T21:20:47.130Z","1.0.1":"2024-12-02T11:06:30.537Z","1.0.0":"2024-12-02T10:55:43.901Z"},"users":{},"author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"repository":{"type":"git","url":"git+https://github.com/coderaiser/putout.git"},"versions":{"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":{"shasum":"1a56d1245e05b158a597ec47b088b810d396bf86","size":2424,"noattachment":false,"key":"/@putout/plugin-add-missing-parens/-/@putout/plugin-add-missing-parens-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-add-missing-parens/download/@putout/plugin-add-missing-parens-2.0.1.tgz"},"_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,"_cnpmcore_publish_time":"2024-12-22T21:17:44.377Z","publish_time":1734902264377,"_source_registry_name":"default","_cnpm_publish_time":1734902264377},"2.0.0":{"name":"@putout/plugin-add-missing-parens","version":"2.0.0","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/master/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.0","gitHead":"77a424fd0d261a245edbaea5c1ecc0c3b9d50a75","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"22.12.0","_npmVersion":"10.9.0","dist":{"shasum":"6e4ae0de21c5321de9bee3dd399f7a135b8fcff7","size":2391,"noattachment":false,"key":"/@putout/plugin-add-missing-parens/-/@putout/plugin-add-missing-parens-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-add-missing-parens/download/@putout/plugin-add-missing-parens-2.0.0.tgz"},"_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.0_1734384046922_0.17241945913939571"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-12-16T21:20:47.130Z","publish_time":1734384047130,"_source_registry_name":"default","_cnpm_publish_time":1734384047130},"1.0.1":{"name":"@putout/plugin-add-missing-parens","version":"1.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/master/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":">=36"},"license":"MIT","engines":{"node":">=18"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-add-missing-parens@1.0.1","gitHead":"31b4760d7e2de09bb52b46b577e1c4748f7226b2","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"22.11.0","_npmVersion":"10.9.0","dist":{"shasum":"a6c86e66e03b0ef730ac147d65910e91264a6aa2","size":2181,"noattachment":false,"key":"/@putout/plugin-add-missing-parens/-/@putout/plugin-add-missing-parens-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-add-missing-parens/download/@putout/plugin-add-missing-parens-1.0.1.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-add-missing-parens_1.0.1_1733137590344_0.6989553882080155"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-12-02T11:06:30.537Z","publish_time":1733137590537,"_source_registry_name":"default","_cnpm_publish_time":1733137590537},"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","size":2088,"noattachment":false,"key":"/@putout/plugin-add-missing-parens/-/@putout/plugin-add-missing-parens-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-add-missing-parens/download/@putout/plugin-add-missing-parens-1.0.0.tgz"},"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"},"_cnpmcore_publish_time":"2024-12-02T10:55:43.901Z","publish_time":1733136943901,"_source_registry_name":"default","_cnpm_publish_time":1733136943901}},"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","_attachments":{},"homepage":"https://github.com/coderaiser/putout/tree/v36.18.0/packages/plugin-add-missing-parens#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"license":"MIT"}