{"name":"@putout/plugin-apply-comparison-order","version":"1.0.0","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to apply comparison order","homepage":"http://github.com/coderaiser/putout/tree/master/packages/plugin-apply-comparison-order#readme","main":"lib/apply-comparison-order.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-apply","plugin","comparison-order"],"devDependencies":{"@putout/test":"^5.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^15.0.0","lerna":"^5.0.0","madrun":"^9.0.0","nodemon":"^2.0.1"},"peerDependencies":{"putout":">=26"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"f47701e47f1f5d1b50c1e12d9f9152afa9216b21","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-apply-comparison-order@1.0.0","_nodeVersion":"18.4.0","_npmVersion":"8.3.0","dist":{"integrity":"sha512-UYBN4i7Jz1Af+qSSPWTBClmyMEA8f29OSIn63nKhbC7YQrh4wipocYWa4nh0w9WEX4MhRLSUbJOc0cIC0GUGkA==","shasum":"7022e169095d34b5c5af231cc9bc258fc6068b63","tarball":"http://registry-npm.ywwl.com/@putout/plugin-apply-comparison-order/download/@putout/plugin-apply-comparison-order-1.0.0.tgz","fileCount":4,"unpackedSize":4385,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICRBqowgT0xIg9B6e9m8nw/2ELc8Z0PJq5TeNLh+ZzZmAiEA65e/AsDx5W61f9Alo9PosXWNCvo2nf4sdHC7qXZgUcI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiuqbwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqzehAAiLX7287W4OCCaUqB38xxIQvf1p+0J/vVhNnR/J1YApiIk9rk\r\nZX3VAneqBtc7cCzsSqJKdgyhnkhnEHmPrHi5YV1VcFCQT9b/OB6gb/ACErTX\r\nYbhmIPvSd2g0I5laFlXOwuUPoKvzZygNSIS1vUlxvOUlLvVt2Yw8NsazGYcu\r\nRKkdvoaUCrIj7cubk2z2fStoZByAvMkdAEMrD0Rk5fcNejvo981zK3uLncfw\r\nK6y0JTdcVGLwAbEel6XvU4ZSQg8vxZC7/4rk1wq/ambQSeFnMiAtXm/8DTWf\r\nVppDepxyIytRerktrkIdwjB4jfVfLZEaY9M/ksc3b/TgZv3xEqH77OVuGgu0\r\n92+T48x7GosBg2ksfpuEHGYOp8mAIfmKVyeOqtOieW1PTfzkNVI3Z38QhTMP\r\nKsKzFVEJ8mBsG3Y45Magjd0CbwQa1TkD46OEnENVtd0umuZ2JqvlfBUbYlhh\r\nlOaqncHV+EQcVlSW9whYDjfHR/s+YYriSKInAA61InnFZwac43kPYn+WgRdS\r\nFaK/h4/83fG/Uhd2UaEaaEgnEfQ2t8bSSJeWOtbnwJeMl3CX/glLepuSdtkx\r\nFgQRu7XwCAYNKMTEFx72URFEKRgftesB1dz+cjQK8qk/HA6+mjrkuJwRVPEf\r\n/NkPB4BikG49gmbOKCPsH5rxFDAoM+TNheE=\r\n=F65v\r\n-----END PGP SIGNATURE-----\r\n","size":2095,"noattachment":false,"key":"/@putout/plugin-apply-comparison-order/-/@putout/plugin-apply-comparison-order-1.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-apply-comparison-order_1.0.0_1656399600459_0.28025126997861194"},"_hasShrinkwrap":false,"readme":"# @putout/plugin-apply-comparison-order [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-apply-comparison-order.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-apply-comparison-order \"npm\"\n\n> The result of evaluating an equality operator is always of type boolean based on whether the comparison is true.\n>\n> (c) [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators)\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to apply comparison order.\nCheckout it 🐊[Putout Editor](https://putout.cloudcmd.io/#/gist/c61c94d2e1990f59b160aaf462f9a903/0855844b114079ec46098be6f3602dfdaa74290c). Merged to [`@putout/plugin-conditions`](https://www.npmjs.com/package/@putout/plugin-conditions).\n\n## Install\n\n```\nnpm i @putout/plugin-apply-comparison-order\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"apply-comparison-order\": \"on\"\n    }\n}\n```\n\n## ❌ Example of incorrect code\n\n```js\n3 === a;\n3 < b;\n```\n\n## ✅ Example of correct code\n\n```js\na === 3;\nb > 3;\n```\n\n## Comparison\n\nLinter | Rule | Fix\n--------|-------|------------|\n🐊 **Putout**| [`apply-comparison-order`](https://github.com/coderaiser/putout/tree/master/packages/plugin-apply-comparison-order#readme)| ✅\n⏣ **ESLint** | [`yoda`](https://eslint.org/docs/rules/yoda) | ½\n\n## License\n\nMIT\n","publish_time":1656399600643,"_cnpm_publish_time":1656399600643,"dist-tags":{"latest":"1.4.1"}}