{"name":"@putout/plugin-remove-useless-array","version":"1.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 array inside property accessors","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-useless-array#readme","main":"lib/remove-useless-array.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","array","useless"],"devDependencies":{"@putout/test":"^9.0.0","c8":"^9.0.0","eslint":"^9.0.0-alpha.0","eslint-plugin-n":"^17.0.0-0","madrun":"^10.0.0"},"peerDependencies":{"putout":">=35"},"license":"MIT","engines":{"node":">=18"},"publishConfig":{"access":"public"},"gitHead":"079748bdcad640f235ec204e5a8390ffefb8cd27","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-remove-useless-array@1.1.0","_nodeVersion":"20.11.0","_npmVersion":"9.6.6","dist":{"integrity":"sha512-xWwGpvhtCiglwYjUZXOAple09QRnNZkCR8waoKxIlr8STSKB+6DGrdDCDw7A36fUNrTX96D4svGn1fHNAR6XIQ==","shasum":"86329ce3d1c98c8936fcb6491d61ec35b6bb87a7","tarball":"http://registry-npm.ywwl.com/@putout/plugin-remove-useless-array/download/@putout/plugin-remove-useless-array-1.1.0.tgz","fileCount":4,"unpackedSize":3616,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIER3GLQJBjYnN8j9QNudgXIlPo19xUuAm+BAyU/xqTH1AiB1wcZIMgE6uFZuy5kAiQhlcY/Qt9adtcT2yXz5XPL2Vw=="}],"size":1910,"noattachment":false,"key":"/@putout/plugin-remove-useless-array/-/@putout/plugin-remove-useless-array-1.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-array_1.1.0_1707939087367_0.907839928244085"},"_hasShrinkwrap":false,"readme":"# @putout/plugin-remove-useless-array [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-remove-useless-array.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-remove-useless-array \"npm\"\n\n> Property accessors provide access to an object's properties by using the dot notation or the bracket notation.\n>\n> (c) [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Property_accessors)\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to remove useless array inside property accessors.\nCheckout in 🐊[**Putout Editor**](https://putout.cloudcmd.io/#/gist/5f12b264319f962d28c85948f6162ef9/03422d094b86256a4d20ac70cbcde929884844e3).\n\n## Install\n\n```\nnpm i @putout/plugin-remove-useless-array\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"remove-useless-array\": \"on\"\n    }\n}\n```\n\n## ❌ Example of incorrect code\n\n```js\nA[[B]];\n```\n\n## ✅ Example of correct code\n\n```js\nA[B];\n```\n\n## License\n\nMIT\n","publish_time":1707939087509,"_cnpm_publish_time":1707939087509,"dist-tags":{"latest":"3.0.0"}}