{"name":"@putout/plugin-convert-index-of-to-includes","version":"3.0.0","type":"module","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+https://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/eslint-flat":"^4.0.0","@putout/test":"^15.0.0","c8":"^10.0.0","eslint":"^10.0.0-alpha.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^30.0.0","madrun":"^12.0.0"},"peerDependencies":{"putout":">=41"},"license":"MIT","engines":{"node":">=22"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-convert-index-of-to-includes@3.0.0","gitHead":"1a583d164c77bf721797f939f18ebbf57bb12a79","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"25.5.0","_npmVersion":"11.4.2","dist":{"integrity":"sha512-Qla7/+wcLSfxqV3zmTt+chqxegDFkkMoGb+o7/lTpgzliYY8bAR4QeADsvePadGj9k0EvvIjaARArYPXTC/OUA==","shasum":"4c059741f4715505e2964e7c0e9049826cf3598a","tarball":"http://registry-npm.ywwl.com/@putout/plugin-convert-index-of-to-includes/download/@putout/plugin-convert-index-of-to-includes-3.0.0.tgz","fileCount":4,"unpackedSize":3773,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDJ6uI+vXJ461rhMxeWHk13vBy2Xor09Uk6NC/AfRQvRAIgMdV+qP1WZhGH++jieRgNtWok0Fycr4CJRyzKcMLGUqc="}],"size":1906,"noattachment":false,"key":"/@putout/plugin-convert-index-of-to-includes/-/@putout/plugin-convert-index-of-to-includes-3.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-npm-production","tmp":"tmp/plugin-convert-index-of-to-includes_3.0.0_1769633275291_0.4262951997787714"},"_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## ✅ Example of correct code\n\n```js\nif (array.includes(element)) {}\n```\n\n## License\n\nMIT\n","publish_time":1769633275436,"_cnpm_publish_time":1769633275436,"dist-tags":{"latest":"3.0.0"}}