{"name":"@putout/plugin-convert-index-of-to-includes","version":"2.0.1","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to convert indexOf to includes","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-convert-index-of-to-includes#readme","main":"lib/convert-index-of-to-includes.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://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-convert","plugin","convert","index-of","includes"],"devDependencies":{"@putout/test":"^6.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-n":"^15.2.4","eslint-plugin-putout":"^17.0.0","madrun":"^9.0.0"},"peerDependencies":{"putout":">=29"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"c6805bb5544944bfb35f1ff47aeb996e0630cb00","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-convert-index-of-to-includes@2.0.1","_nodeVersion":"18.14.2","_npmVersion":"9.1.3","dist":{"integrity":"sha512-l8OA1+5hzviySeGTYsKZFBLALIye0at/ewRnvXQI5bH3s2De7d8OdMn5x7wdHwTph1NyrCwo4sLHlQX6E/fG7g==","shasum":"fcde636433ab9e32a957083b9efb1756a673574f","tarball":"http://registry-npm.ywwl.com/@putout/plugin-convert-index-of-to-includes/download/@putout/plugin-convert-index-of-to-includes-2.0.1.tgz","fileCount":4,"unpackedSize":3742,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH30SCdQAKqChB0aB50nBAn1yEoLy2eorPWUxk63KkcMAiBLfjUtx4j6CLQWkEXsZiLjOPjLYv48OpG1XkTgvHrDdQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkJDOsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr9sBAAhpry2+rGIn7aWOis8TGZnuB2YQsmJEPioeHJtvLFoFy+jhUG\r\nVmwyjInSmbKeqacizkUEEzg2Da2QMm505r6lcN44KghYT5BqAfxtq3HQDCSG\r\nkCpsYkRaPeoz5g5MrHRPyxqWVKj5CSfUUcwnnQnrgPN1E3WerLCUsrKSIc9Y\r\nMiPsFOlEudint0cG2Kf9E+7MgQn9hn6CVlMUzAuIub714mmGTZL4nmNCuwFF\r\n8BUf/nMlkfQdDKIgQCZIR4QJTUDOZ0Pm9PVo07u7ssWfXFy3hvqRPLXtqSFu\r\ndTlrq3otrtlqFYFA/t1E23EB7WX1KD4d5oOZBuGJeJXXf32PYmngjG4F4FgR\r\ntGOD7g9Xm2agkDyOmbX2+fARdkgJT3xbRG29RCRxmz2ZdqYXPftMA9aC6TiH\r\nkMRG9D4uAIOeBEtbsWh3/mSH9ZoVR61eUDyyokt/R4Jnzwa1mxzk2Whpj72T\r\nZrwOwzNnRXtt+Dm/GIcjFOiWnSIGGBa3jQEC4hi5tsEtjsJfeDqti9ulRNDR\r\ni0le8VRVaO41fwSYDYlKIimnucFP3BFeaIWO9amKPJrNXmmA/X+7abJBRyE1\r\nKPUaM2IWY+EUY9qWUpb5dT1Bp5ymybocfePEy/kNhAwxh8RWPFvcqp3FTNTo\r\njdGVUsLlHAAe+RWdyIP2ogmJTFlMuxw/FJM=\r\n=5UWy\r\n-----END PGP SIGNATURE-----\r\n","size":1901,"noattachment":false,"key":"/@putout/plugin-convert-index-of-to-includes/-/@putout/plugin-convert-index-of-to-includes-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","tmp":"tmp/plugin-convert-index-of-to-includes_2.0.1_1680094123884_0.9976932849114579"},"_hasShrinkwrap":false,"readme":"# @putout/plugin-convert-index-of-to-includes [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-convert-index-of-to-includes.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-convert-index-of-to-includes \"npm\"\n\n> The `includes()` method determines whether an array includes a certain value among its entries, returning `true` or `false` as appropriate.\n>\n> (c)[MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes)\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to convert `indexOf` to `includes`.\n\n## Install\n\n```\nnpm i @putout/plugin-convert-index-of-to-includes -D\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"convert-index-of-to-includes\": \"on\"\n    }\n}\n```\n\n## ❌ Example of incorrect code\n\n```js\nif (~array.indexOf(element)) {\n}\n```\n\n## ✅ Example of correct code\n\n```js\nif (array.includes(element)) {\n}\n```\n\n## License\n\nMIT\n","publish_time":1680094124029,"_cnpm_publish_time":1680094124029,"dist-tags":{"latest":"3.0.0"}}