{"name":"@putout/plugin-convert-assignment-to-arrow-function","version":"1.2.2","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability convert assignment to arrow function","homepage":"https://github.com/coderaiser/putout/tree/v38.5.7/packages/plugin-convert-assignment-to-arrow-function#readme","main":"lib/convert-assignment-to-arrow-function.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","assignment","arrow-function"],"devDependencies":{"@putout/eslint-flat":"^3.0.0","@putout/test":"^13.0.0","c8":"^10.0.0","eslint":"^9.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^26.0.0","madrun":"^11.0.0"},"peerDependencies":{"putout":">=15"},"license":"MIT","engines":{"node":">=14"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-convert-assignment-to-arrow-function@1.2.2","gitHead":"554dae8f6f20e26966d35afbbef98d682d9fede9","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"22.14.0","_npmVersion":"11.1.0","dist":{"integrity":"sha512-c0wH8tkAlogllIIYZmxEdMRwS27c4bLLQKNgYKrCgZs4RS39dutgK41aCZQWsCKfDl9ruGF2DaEJ034BSManZg==","shasum":"833ef019635755abcf954a0a67c9404a4066c3b9","tarball":"http://registry-npm.ywwl.com/@putout/plugin-convert-assignment-to-arrow-function/download/@putout/plugin-convert-assignment-to-arrow-function-1.2.2.tgz","fileCount":4,"unpackedSize":4510,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDZLiXdCp2RFB9cssfq9ws+9+WdI5E8Pb2A88De2dpdaQIhAN2yokswZr1E+wZHoAQGyDJQc2GUtR65/hZ6GbKk2Mgz"}],"size":2141,"noattachment":false,"key":"/@putout/plugin-convert-assignment-to-arrow-function/-/@putout/plugin-convert-assignment-to-arrow-function-1.2.2.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-assignment-to-arrow-function_1.2.2_1742837903173_0.5077382763295613"},"_hasShrinkwrap":false,"readme":"# @putout/plugin-convert-assignment-to-arrow-function [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-convert-assignment-to-arrow-function.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-convert-assignment-to-arrow-function\"npm\"\n\n> The [**assignment operator**](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Assignment) (`=`) is used to assign a value to a variable. The assignment operation evaluates to the assigned value. Chaining the assignment operator is possible in order to assign a single value to multiple variables.\n\nMerged to [`@putout/plugin-assignment`](https://www.npmjs.com/package/@putout/plugin-assignment).\n>\n> An [**arrow function expression**](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions) is a compact alternative to a **function expression**.\n>\n> (c) MDN\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to convert **assignment** to **arrow** function.\n\n## Install\n\n```\nnpm i @putout/plugin-convert-assignment-to-arrow-function -D\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"convert-assignment-to-arrow-function\": \"on\"\n    }\n}\n```\n\n## ❌ Example of incorrect code\n\n```js\nconst createRegExp = a = RegExp(a, 'g');\n```\n\n## ✅ Example of correct code\n\n```js\nconst createRegExp = (a) => RegExp(a, 'g');\n```\n\n## License\n\nMIT\n","publish_time":1742837903379,"_cnpm_publish_time":1742837903379,"dist-tags":{"latest":"1.2.2"}}