{"name":"@putout/plugin-remove-useless-array","version":"2.0.0","keywords":["putout","putout-plugin","plugin","array","useless"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-remove-useless-array@2.0.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-useless-array#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"53418be2e1dd02f64f39b55c00064e631ca5b8b9","tarball":"http://registry-npm.ywwl.com/@putout/plugin-remove-useless-array/download/@putout/plugin-remove-useless-array-2.0.0.tgz","fileCount":4,"integrity":"sha512-aYQLPwo20LPW7lcQopL7h/DgcAB/HADQBoGhCLNQGdxyy1KMOtZ7nL+2M5wNXAbxrsfeL92MY5MX0DMxDk6fIA==","signatures":[{"sig":"MEYCIQDGv9sGnSXGmkzOcbb6XjcQ3wiHEQ1gdm2uxk7Qs4y3qwIhAJ7G2Yhwqu8qXA7XUugJYnP9E04R9xzE5KsMnxWkIjJ4","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3670,"size":1905,"noattachment":false,"key":"/@putout/plugin-remove-useless-array/-/@putout/plugin-remove-useless-array-2.0.0.tgz"},"main":"lib/remove-useless-array.js","type":"module","engines":{"node":">=20"},"gitHead":"38b649e150f31c20ed689b68d04be315b76aaba7","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","publishOnly":"madrun publishOnly"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"changelog":false,"repository":{"url":"git+https://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"11.1.0","description":"🐊Putout plugin adds ability to remove useless array inside property accessors","directories":{},"_nodeVersion":"22.15.0","dependencies":{"eslint-plugin-putout":"^26.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","eslint":"^9.0.0","madrun":"^11.0.0","@putout/test":"^13.0.0","eslint-plugin-n":"^17.0.0","@putout/eslint-flat":"^3.0.0"},"peerDependencies":{"putout":">=40"},"_npmOperationalInternal":{"tmp":"tmp/plugin-remove-useless-array_2.0.0_1747417811448_0.40319896702204105","host":"s3://npm-registry-packages-npm-production"},"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":1747417811625,"_cnpm_publish_time":1747417811625,"dist-tags":{"latest":"3.0.0"}}