{"name":"@putout/plugin-remove-double-negations","version":"4.0.0","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"putout plugin adds ability to remove double negations","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-double-negations#readme","main":"lib/remove-double-negations.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","plugin","logical","negation"],"devDependencies":{"@putout/test":"^5.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-node":"^11.0.0","lerna":"^4.0.0","madrun":"^9.0.0","nodemon":"^2.0.1"},"peerDependencies":{"putout":">=25"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"e640831cc1bdca8da24f5d56c89532630a4a3b38","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-remove-double-negations@4.0.0","_nodeVersion":"16.14.2","_npmVersion":"8.3.0","dist":{"integrity":"sha512-5+bT+qyvBc8evN4A3uxEKT49i7QUIgHyZSBSsj16NUIFgMiD5fhV9xqA4VJrnBwFbwhPoGeR2u6OhPrBgqJbEA==","shasum":"b9cdaa2079713f1b78491df9f05c9a8e6ce44950","tarball":"http://registry-npm.ywwl.com/@putout/plugin-remove-double-negations/download/@putout/plugin-remove-double-negations-4.0.0.tgz","fileCount":4,"unpackedSize":3844,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiOf1cACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp6pQ//bad3xh1KxRg31R1zV2sqP2peANgib7V9rN4l8do8TwY86lwU\r\n0KQkzmi7L4YNNUmXOhcz/kNyoZS24gdpcpdZVaw1f7BOzvZ9D9eVgFLtvuY9\r\naBi7L3TlL1aHLoQEtGQRU6sbSX2Qh47gN8iw2+euq1DkasA4EjChKfBclUGL\r\nr5ScuhZBBKcVj2LCGCvp8zrYpvkLPmu9NL2BxNNMeoAWYtGBaElRuo1KSPrm\r\n6ur827PJZ7lcCqexwRb+c3PRq19M4gDY8ZTAa+lV+HoVUdFTLwvxQ6VlGlL2\r\nHFdE0J9Fg4utnZbZUp2/46CVxYw6zhWdCtkI8fnKaunz5dJPAsgfi+aYshyu\r\nkEHXbjiYK0r5jD0WA2mamu38oG+STNFYNI3U69WDmPFg9I6Jt+EjamOp4LFa\r\nsCPO2SKSnDKlDqzpsn+SMsMc//R58SrA6a3WT8uOghpeXTBb24D59unjNWnd\r\nD6G5e4Sv5iNRXEa/rGyWYCZXEBtwy1E5fqZcnZHrOhXOVwO48Lc527Tm6g02\r\n3DMdoa/2burxwFZ32KMO8Ie3rvGOE0ulfYaL9o2SCYjEtvAYwUNU5YWNj5VA\r\n6pG9d+h94X/tvitsNxA+1QZpiujEmGn6QPCXt1XyN3rPcdvtwBd6BPSg8xzY\r\nmWuvWxBXExA0LkG9j/o9bYDkGW1F7fD6DC4=\r\n=omWe\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCH9Hk728rfnZJoINss/MSI10vmv0qzlYNYHjWxEDvz3AIhAJ1ZAtGdeIGRMXT26MbaFMEZdyuPB8Numco9G+d7zT3z"}],"size":1954,"noattachment":false,"key":"/@putout/plugin-remove-double-negations/-/@putout/plugin-remove-double-negations-4.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","tmp":"tmp/plugin-remove-double-negations_4.0.0_1647967580132_0.12112766223654026"},"_hasShrinkwrap":false,"readme":"# @putout/plugin-remove-double-negations [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-remove-double-negations.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-remove-double-negations\"npm\"\n\n> To explicitly convert its return value (or any expression in general) to the corresponding boolean value can be used a double NOT operator (`!!`).\n>\n> (c) [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Logical_NOT)\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to remove **double negations** from conditionals. Merged to [**remove-unused-type-convertion**](https://www.npmjs.com/package/@putout/plugin-remove-useless-type-conversion)\n\n## Install\n\n```\nnpm i @putout/plugin-remove-double-negations\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"remove-double-negations\": \"off\"\n    }\n}\n```\n\n## ❌ Example of incorrect code\n\n```js\nif (!!a) {\n    console.log('hi');\n}\n```\n\n## ✅ Example of correct code\n\n```js\nif (a) {\n    console.log('hi');\n}\n```\n\n## License\n\nMIT\n","publish_time":1647967580289,"_cnpm_publish_time":1647967580289,"dist-tags":{"latest":"4.0.1"}}