{"name":"@putout/plugin-add-missing-new","version":"1.0.2","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to add missing operator 'new'","homepage":"https://github.com/coderaiser/putout/tree/v25.18.0/packages/plugin-add-missing-new#readme","main":"lib/add-missing-new.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"publishOnly":"madrun publishOnly","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","plugin","new","missing"],"devDependencies":{"@putout/test":"^5.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-node":"^11.0.0","madrun":"^9.0.0"},"peerDependencies":{"putout":">=25"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"6a996941069b5112887775776a568a1b641c9cdb","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-add-missing-new@1.0.2","_nodeVersion":"18.0.0","_npmVersion":"8.3.0","dist":{"integrity":"sha512-gc3MfJK9/yYN0m5mMiDAUCi4D0BKDR5ySefmNt/eRm0yPVM05CcKnEOEN7ZJvARpYBhyIut3TeqP5oWZun/2RQ==","shasum":"94e85f00cffe1202679f41c2cae6228f2a254fb0","tarball":"http://registry-npm.ywwl.com/@putout/plugin-add-missing-new/download/@putout/plugin-add-missing-new-1.0.2.tgz","fileCount":4,"unpackedSize":4765,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG/kj0V5q3qzedu+g7VMKmhnWpWVeGF0lan98s9uMWWpAiA7L63bh7hTa1/nL7934tazNsrTc0enLkSfskBmOUOTZA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJid4SXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrN3A//fUufmSAxKiUdwJVUayBMeCovPsxKSKd90J0MqKdubLnqkir2\r\n4+a6gmNbFe+reZqTA7wq9RyFGQBipkX6UJAx6MVEMuBeomPcfm/bIvQjU6Jb\r\nvEvGKUgVz6CYO/ZFWuUcKmlwl9TmZ96BIkhoqBqiTWs96FvKhUiJVfJxeaRq\r\ngMcvT4OuLB5GHMYXclQLFUMTbqGO23zFUUQ6QZMtXGo3ko5gMwEmPNA76Ste\r\n0WtQZbIbcCt05BRE5W8dtRSrsR9npsCPGLlHtBvZxzhq65r02CxGdChhLHDj\r\neC5l942lCSIT1a1P+0HJeoTDcRzvui8IGm3wHZ/IGzfPFRoIxI+PX8QHgVZF\r\nnOaVmQFgyI3NXGWPDR7aFWz79mg5rv+LGHD+hGEP4s/mexYLA7HKG6AIRasH\r\nJ6N30c+dgpP6CyPqD2xfde49LdOViIBHavRI8bZ8yuN2FkOYAByaPbOYJxVB\r\nf5KBTi/4wTnrJR7GHjGge8bR5ixTP7Xfc6dAJiay+LRM64t5eZ5xxEAR89Jh\r\nKOVEOhlhoDCsofPHTXM7yuM4cceti4ZQwqdyVi0HDw+IIIyVAa4v934Fl0Zp\r\nl8L7JlYp7lNyxiIL7n0ILCXAWM9A4La0V/uxFDuwqpO8x8Fih/YF0/brfmPi\r\n+G3Df1vj+uhHT0xdIrGeXF+IfU2khOs+bHs=\r\n=H9vT\r\n-----END PGP SIGNATURE-----\r\n","size":2141,"noattachment":false,"key":"/@putout/plugin-add-missing-new/-/@putout/plugin-add-missing-new-1.0.2.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-new_1.0.2_1651999895232_0.24161359473747646"},"_hasShrinkwrap":false,"readme":"# @putout/plugin-add-missing-new [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-add-missing-new.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-add-missing-new \"npm\"\n\n> The `Set` constructor lets you create Set objects that store unique values of any type, whether primitive values or object references.\n>\n> (c) [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/Set)\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to add missing operator `new`, since built-in objects:\n\n- `Set`;\n- `WeakSet`;\n- `Map`;\n- `WeakMap`;\n- `Int8Array`;\n- `Uint8Array`;\n- `Uint8ClampedArray`;\n- `Int16Array`;\n- `Uint16Array`;\n- `Int32Array`;\n- `Uint32Array`;\n- `Float32Array`;\n- `Float64Array`;\n- `BigInt64Array`;\n- `BigUint64Array`;\n\nProduces [`TypeError`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError) when called without `new` like this:\n\n```\nUncaught TypeError: Constructor Set requires 'new'\n```\n\nPart of [`@putout/plugin-new`](https://www.npmjs.com/package/@putout/plugin-new).\n\n## Install\n\n```\nnpm i @putout/plugin-add-missing-new\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"add-missing-new\": \"on\"\n    }\n}\n```\n\n## ❌ Example of incorrect code\n\n```js\nconst map = Map();\n```\n\n## ✅ Example of correct code\n\n```js\nconst map = new Map();\n```\n\n## License\n\nMIT\n","publish_time":1651999895387,"_cnpm_publish_time":1651999895387,"dist-tags":{"latest":"1.0.2"}}