{"name":"@putout/plugin-convert-index-of-to-includes","version":"1.1.0","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"putout plugin adds ability to convert indexOf to includes","homepage":"http://github.com/coderaiser/putout","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","lint":"madrun lint","fix:lint":"madrun fix:lint","coverage":"madrun coverage"},"dependencies":{},"keywords":["putout","putout-plugin","putout-plugin-convert","plugin","convert","index-of","includes"],"devDependencies":{"@putout/test":"^2.0.0","coveralls":"^3.0.0","eslint":"^7.1.0","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^4.0.0","madrun":"^6.0.0","nyc":"^15.0.1","supertape":"^2.0.0"},"peerDependencies":{"putout":">=8"},"license":"MIT","engines":{"node":">=8.3.0"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-convert-index-of-to-includes@1.1.0","_nodeVersion":"14.3.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-d2w/GwYwtaq1ArW5VJA+CpSIPiRI1Lp4zJIGcQENj0zOyTwJ7OWP8SqHlqWOSoK6YpMoMFSDdlH1JU5NBTsx8Q==","shasum":"95a436cd956dc829863f36d7520759806cb56622","tarball":"http://registry-npm.ywwl.com/@putout/plugin-convert-index-of-to-includes/download/@putout/plugin-convert-index-of-to-includes-1.1.0.tgz","fileCount":4,"unpackedSize":3699,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe1Ue2CRA9TVsSAnZWagAA6lIP/33+XcE6HkMaYcFk40iy\n1F2SKIfX/tbLdYJ48AhMb8j7npIVFB0/JJrQ8V/CpiEy5A9GfVZAyXScLO8G\ntqoaveT06A1cL9pMnvGkgvksx1jlBoSsUs/xZFVPa0qZANVAogMt4s21hd1U\ndSQ8pCj9uLah1u5zhcvJKVoCFctV4HAf2cBrN9G+8LVihsTY7EP3qMigFc6J\nagKgTrw1mo4YqwQPTiKaLUQBeiNyxKvZl4NhTbFi1k6dv7KmSEz1bWkCYlUy\nS7yMxOvZADwD8/2bskWdCdFPzd9nm2I+JDlPV01O5DT9wOOHTgijYY3anauf\nJaHp7NnM6dknCrTKQQFM5s9TpCJgDe/4jGZ1ivlm8YXKv4bQVco7Zw45MdXD\nZ7uydx1KYglUGDgM4KcaXuofDtdNNjUnqiQi63LU0lAX27TUSRDHT0cNN66U\npPlo6tMdu37a6XrVFK3DBQbJG9cB+1iBNSaM4dG7fLZvcAyvLZ3Hg+NnwHqT\nU12qZWCX+01Yx9upMH2G7PrPV5qjXl+iwKQV9i4yntCG45M92+nwFIxX1I+s\nHjGbtZjGR1b/Ztihtpwtm1Ox70ibz4eoW4Nw7t8gMfkcco11XivmmUSRIJoP\nVMJWzRvZ7HXNbvrZ4S/aolCJP1mkcsmAMIfEOFqbUQYLwYGIq+4xszvoz34G\nNlsd\r\n=haow\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDAgzT9SojW+Z+PGAO4hoGaL0i2ov6casSGhr9F/RUahAiBJ8YqmVID/HnWj9yIpFnUXQUwaSnF+uGfZqWYqtNwk0g=="}],"size":1804,"noattachment":false,"key":"/@putout/plugin-convert-index-of-to-includes/-/@putout/plugin-convert-index-of-to-includes-1.1.0.tgz"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-convert-index-of-to-includes_1.1.0_1591035829762_0.4775260791503173"},"_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":1591035829978,"_cnpm_publish_time":1591035829978,"dist-tags":{"latest":"3.0.0"}}