{"name":"@putout/plugin-apply-comparison-order","version":"1.4.1","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/v28.19.2/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":"^6.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-n":"^15.2.4","eslint-plugin-putout":"^16.0.0","lerna":"^6.0.1","madrun":"^9.0.0","nodemon":"^2.0.1"},"peerDependencies":{"putout":">=26"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"b799c0a5d9937e6bb84e932aeea81be99dddeaa4","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-apply-comparison-order@1.4.1","_nodeVersion":"18.15.0","_npmVersion":"9.1.3","dist":{"integrity":"sha512-wtqcibrkFTOzEBoPzaMOOFm3YRDdXSPLFXwqGj5v8TceURzON+wQXkNs3FLclUifsFud0cp/I1Sn4071mmS8nQ==","shasum":"1e78ff29abd89a39d3eb25f9e740f554037f5b05","tarball":"http://registry-npm.ywwl.com/@putout/plugin-apply-comparison-order/download/@putout/plugin-apply-comparison-order-1.4.1.tgz","fileCount":4,"unpackedSize":5584,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFOW8INZNti4AHUpLPit3YFANx7/Zn7BVdRQxc6OZYJmAiEAkzmIXlT+ReTBCsSidDoOYDOYkpiLonp9FYeKBiGWFgI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkDHRLACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq/YQ/+MVuL9djqg7ymwtbwiTM0Z5pOTV8bsRJT21oxVfLZzRT143kR\r\nqA2hkqw9AdybPzVR7h3FcZWmHT1s4ZnxSsODJDZZzGGMfbUge+Tdgz3xi0rA\r\nqRoR9SeT9VIeRenMQmZHjbk/WC+AoXjVe3nL3zs4hcAXfcZGk4psRzsSULfE\r\nqTd9V9vX25T6lWqZ6i1wRZt5eW87oZU9rbUi8/xbPX13J4Tf/1Umh9nUTD2C\r\nipzArmAy5DqfmwLsgeJGgK4dQpQfe8RyFywBEr4lvWmfqGKGEkLkT2b6f2n0\r\n4cFOMxg69Kx5yuYC/OfcNwOEkeUZPui1nuWRotf5MwA8AxPFFKosR07hgy6s\r\n5+CxgOu6MuXbZmSTUbBSS2cVAWW1GiYr8DkPJZpOBDmePhbYU3rM5avQrf5+\r\npbSrk57usf/7JmzOCu+kBXKQlunaW0VVPC3q21CmQ3zjIRl8HvgcAArw/jpt\r\nwn9mF0v7D7uTSq4i2Bm8Nn30lUqsRBWCUVqISI2yxjQ5/YPEMyUhk9dq+ggh\r\nJcyRS/0Vd5sJeyaGk3eoIMRigkFk9Wqqvl9YZ76GVRHvhJqGqfF2NzBwIo+g\r\naHZjTHnL6+0eGSmJhpYHdqTD0VLnX5Ws4NjANKH9phmzWyQSJsDZz7Tm1HLY\r\nwIpNqRSccL0EvH6+0wpTR3RPue9qJULAtFM=\r\n=lxgt\r\n-----END PGP SIGNATURE-----\r\n","size":2499,"noattachment":false,"key":"/@putout/plugin-apply-comparison-order/-/@putout/plugin-apply-comparison-order-1.4.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-apply-comparison-order_1.4.1_1678537802769_0.16827986392462657"},"_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":1678537803024,"_cnpm_publish_time":1678537803024,"dist-tags":{"latest":"1.4.1"}}