{"_id":"@putout/plugin-remove-useless-new","_rev":"4158821","name":"@putout/plugin-remove-useless-new","description":"🐊Putout plugin adds ability to remove useless operator 'new'","dist-tags":{"latest":"2.3.2"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"time":{"modified":"2026-03-01T20:33:12.000Z","created":"2021-09-22T16:25:29.598Z","2.3.2":"2022-05-08T08:50:38.086Z","2.3.1":"2022-05-08T08:23:12.082Z","2.3.0":"2022-05-07T20:36:45.598Z","2.2.0":"2022-05-07T19:55:01.400Z","2.1.1":"2022-04-29T20:07:48.871Z","2.1.0":"2022-04-29T20:01:00.220Z","2.0.0":"2022-04-29T19:53:31.117Z","1.0.1":"2021-09-22T16:58:12.890Z","1.0.0":"2021-09-22T16:25:29.598Z"},"users":{},"author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"versions":{"2.3.2":{"name":"@putout/plugin-remove-useless-new","version":"2.3.2","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to remove useless operator 'new'","homepage":"https://github.com/coderaiser/putout/tree/v25.18.0/packages/plugin-remove-useless-new#readme","main":"lib/remove-useless-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","useless"],"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-remove-useless-new@2.3.2","_nodeVersion":"18.0.0","_npmVersion":"8.3.0","dist":{"shasum":"90726ec50d37a486ac02dd80f7a2018c7e80bd3c","size":2273,"noattachment":false,"key":"/@putout/plugin-remove-useless-new/-/@putout/plugin-remove-useless-new-2.3.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-remove-useless-new/download/@putout/plugin-remove-useless-new-2.3.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-remove-useless-new_2.3.2_1651999837919_0.6292914681561661"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-05-08T08:50:44.685Z","publish_time":1651999838086,"_cnpm_publish_time":1651999838086},"2.3.1":{"name":"@putout/plugin-remove-useless-new","version":"2.3.1","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to remove useless operator 'new'","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-useless-new#readme","main":"lib/remove-useless-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","useless"],"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":"6d9d10d157d31bf13d16de1b4dbef1298f690139","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-remove-useless-new@2.3.1","_nodeVersion":"18.0.0","_npmVersion":"8.3.0","dist":{"shasum":"c3dadc243194cb6528d41b0a53457f51e1bbbc3b","size":2263,"noattachment":false,"key":"/@putout/plugin-remove-useless-new/-/@putout/plugin-remove-useless-new-2.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-remove-useless-new/download/@putout/plugin-remove-useless-new-2.3.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-remove-useless-new_2.3.1_1651998191818_0.7276409473640699"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-05-08T08:23:24.444Z","publish_time":1651998192082,"_cnpm_publish_time":1651998192082},"2.3.0":{"name":"@putout/plugin-remove-useless-new","version":"2.3.0","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to remove useless `new` operator","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-useless-new#readme","main":"lib/remove-useless-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","useless"],"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":"c0f48953efe509b7ee34118d34bd7e404ad5307a","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-remove-useless-new@2.3.0","_nodeVersion":"16.14.2","_npmVersion":"8.3.0","dist":{"shasum":"852aaa937b2d41414f0cd3ad6bd4f9589110520b","size":2230,"noattachment":false,"key":"/@putout/plugin-remove-useless-new/-/@putout/plugin-remove-useless-new-2.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-remove-useless-new/download/@putout/plugin-remove-useless-new-2.3.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","tmp":"tmp/plugin-remove-useless-new_2.3.0_1651955805406_0.9465385350670994"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-05-07T20:36:50.406Z","publish_time":1651955805598,"_cnpm_publish_time":1651955805598},"2.2.0":{"name":"@putout/plugin-remove-useless-new","version":"2.2.0","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to remove useless `new` operator","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-useless-new#readme","main":"lib/remove-useless-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","useless"],"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":"c2c6fb62237a3a3a86a71b206bee550aa0267c08","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-remove-useless-new@2.2.0","_nodeVersion":"16.14.2","_npmVersion":"8.3.0","dist":{"shasum":"e06d49fa12da91bac81b99c1fe339366323fe6d5","size":2209,"noattachment":false,"key":"/@putout/plugin-remove-useless-new/-/@putout/plugin-remove-useless-new-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-remove-useless-new/download/@putout/plugin-remove-useless-new-2.2.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","tmp":"tmp/plugin-remove-useless-new_2.2.0_1651953301213_0.6571805759106921"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-05-07T19:55:04.802Z","publish_time":1651953301400,"_cnpm_publish_time":1651953301400},"2.1.1":{"name":"@putout/plugin-remove-useless-new","version":"2.1.1","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"putout plugin adds ability to remove useless `new` operator","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-useless-new#readme","main":"lib/remove-useless-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","useless"],"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":"2497583e5a552db41a5178b1713fce5d156c5793","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-remove-useless-new@2.1.1","_nodeVersion":"16.14.2","_npmVersion":"8.3.0","dist":{"shasum":"918e78b9ec820ee5062b8b6b0b76376f0973020f","size":2239,"noattachment":false,"key":"/@putout/plugin-remove-useless-new/-/@putout/plugin-remove-useless-new-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-remove-useless-new/download/@putout/plugin-remove-useless-new-2.1.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-remove-useless-new_2.1.1_1651262868721_0.20382380542780765"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-04-29T20:12:02.936Z","publish_time":1651262868871,"_cnpm_publish_time":1651262868871},"2.1.0":{"name":"@putout/plugin-remove-useless-new","version":"2.1.0","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"putout plugin adds ability to remove useless `new` operator","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-useless-new#readme","main":"lib/remove-useless-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","useless"],"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":"b3e95cda6be21f35d29dc2887c00b77065e3a89f","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-remove-useless-new@2.1.0","_nodeVersion":"16.14.2","_npmVersion":"8.3.0","dist":{"shasum":"ca4f823d29b990d721226fff8775763b1cd3ceae","size":2238,"noattachment":false,"key":"/@putout/plugin-remove-useless-new/-/@putout/plugin-remove-useless-new-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-remove-useless-new/download/@putout/plugin-remove-useless-new-2.1.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","tmp":"tmp/plugin-remove-useless-new_2.1.0_1651262460056_0.949131391534092"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-04-29T20:02:02.282Z","publish_time":1651262460220,"_cnpm_publish_time":1651262460220},"2.0.0":{"name":"@putout/plugin-remove-useless-new","version":"2.0.0","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"putout plugin adds ability to remove useless `new` operator","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-useless-new#readme","main":"lib/remove-useless-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","useless"],"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":"16b16c58666ae3984b28993bde894456f503ac6b","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-remove-useless-new@2.0.0","_nodeVersion":"18.0.0","_npmVersion":"8.3.0","dist":{"shasum":"ac6e27c29e9dc8f0fb009c61d57eee2dec5a6f2f","size":2185,"noattachment":false,"key":"/@putout/plugin-remove-useless-new/-/@putout/plugin-remove-useless-new-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-remove-useless-new/download/@putout/plugin-remove-useless-new-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","tmp":"tmp/plugin-remove-useless-new_2.0.0_1651262010930_0.7502884084068944"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-04-29T19:53:35.791Z","publish_time":1651262011117,"_cnpm_publish_time":1651262011117},"1.0.1":{"name":"@putout/plugin-remove-useless-new","version":"1.0.1","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"putout plugin adds ability to remove useless `new` operator","homepage":"http://github.com/coderaiser/putout","main":"lib/remove-useless-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","useless"],"devDependencies":{"@putout/test":"^3.0.0","c8":"^7.5.0","eslint":"^8.0.0-beta.2","eslint-plugin-node":"^11.0.0","madrun":"^8.0.1"},"peerDependencies":{"putout":">=20"},"license":"MIT","engines":{"node":">=14"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-remove-useless-new@1.0.1","_nodeVersion":"16.9.1","_npmVersion":"7.12.0","dist":{"shasum":"20e0a53ba133cdcf1be0fece0077c30b583f5b83","size":2005,"noattachment":false,"key":"/@putout/plugin-remove-useless-new/-/@putout/plugin-remove-useless-new-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-remove-useless-new/download/@putout/plugin-remove-useless-new-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-remove-useless-new_1.0.1_1632329892698_0.0974620504915571"},"_hasShrinkwrap":false,"publish_time":1632329892890,"_cnpm_publish_time":1632329892890,"_cnpmcore_publish_time":"2021-12-16T21:06:01.965Z"},"1.0.0":{"name":"@putout/plugin-remove-useless-new","version":"1.0.0","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"putout plugin adds ability to remove useless `new` operator","homepage":"http://github.com/coderaiser/putout","main":"lib/remove-useless-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","useless"],"devDependencies":{"@putout/test":"^3.0.0","c8":"^7.5.0","eslint":"^8.0.0-beta.2","eslint-plugin-node":"^11.0.0","madrun":"^8.0.1"},"peerDependencies":{"putout":">=20"},"license":"MIT","engines":{"node":">=14"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-remove-useless-new@1.0.0","_nodeVersion":"16.8.0","_npmVersion":"7.21.0","dist":{"shasum":"e087c1f0fb49d666737b4d948353e55863306e91","size":2025,"noattachment":false,"key":"/@putout/plugin-remove-useless-new/-/@putout/plugin-remove-useless-new-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/plugin-remove-useless-new/download/@putout/plugin-remove-useless-new-1.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","tmp":"tmp/plugin-remove-useless-new_1.0.0_1632327929488_0.8378726071530251"},"_hasShrinkwrap":false,"publish_time":1632327929598,"_cnpm_publish_time":1632327929598,"_cnpmcore_publish_time":"2021-12-16T21:06:02.170Z"}},"readme":"# @putout/plugin-remove-useless-new [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-remove-useless-new.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-remove-useless-new \"npm\"\n\n????[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to remove useless operator `new`. Which has no sense for `BigInt`, `Boolean`, `String`, `Number`, `Object`, `RegExp`, `Error`:\n\n> Thus the function call `Error(…)` is equivalent to the object creation expression `new Error(…)` with the same arguments.\n>\n> (c) https://262.ecma-international.org/12.0/#sec-error-constructor\n\nAnd [`Symbol`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol) cannot be used with `new`, as it is primitive.\nPart of [`@putout/plugin-new`](https://www.npmjs.com/package/@putout/plugin-new).\n\n## Install\n\n```\nnpm i @putout/plugin-remove-useless-new\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"remove-useless-new\": \"on\"\n    }\n}\n```\n\n## ❌ Example of incorrect code\n\n```js\nnew Error('Something whent wrong');\nnew new Boolean();\n```\n\n## ✅ Example of correct code\n\n```js\nError('Something whent wrong');\nBoolean();\n```\n\n## Comparison\n\nLinter | Rule | Fix\n--------|-------|------------|\n???? **Putout** | [`remove-useless-new`](https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-useless-new#readme)| ✅\n???? **ESLint** | [`no-new-wrappers`](https://eslint.org/docs/rules/no-new-wrappers) | ❌\n⠀| [`no-new-object`](https://eslint.org/docs/rules/no-new-object) | ❌\n⠀| [`no-array-constructor`](https://eslint.org/docs/rules/no-array-constructor) | ❌\n⠀| [`no-new-symbol`](https://eslint.org/docs/rules/no-new-symbol) | ❌\n\n## License\n\nMIT\n","_attachments":{},"homepage":"https://github.com/coderaiser/putout/tree/v25.18.0/packages/plugin-remove-useless-new#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"license":"MIT"}