{"name":"@putout/plugin-convert-generic-to-shorthand","version":"1.0.0","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"putout plugin adds ability to convert generic to shorthand","homepage":"http://github.com/coderaiser/putout","main":"lib/convert-generic-to-shorthand.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","generic","shorthand"],"devDependencies":{"@putout/test":"^2.0.0","coveralls":"^3.0.0","eslint":"^7.0.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-generic-to-shorthand@1.0.0","_nodeVersion":"14.4.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Yu79YHEMa+KwC8fPoUf4ntcXyqpXPvoVeArK0J2sqn2n+EdLfjgzMSX+seqChejG4KgfzB6JfcoDN0zVMY3kbQ==","shasum":"881c8779651f7ca8ea95e477eb8e925de7726c16","tarball":"http://registry-npm.ywwl.com/@putout/plugin-convert-generic-to-shorthand/download/@putout/plugin-convert-generic-to-shorthand-1.0.0.tgz","fileCount":4,"unpackedSize":4314,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe6otcCRA9TVsSAnZWagAAzJIP/0HPwwWl2X9lErhexMs+\nb2oUH0lzxi4TrP1cpH9EiFAORxel3JZlsi4eG7zYVGgw+vZSj4ycAlkk+wIt\n2i1orpAk1nEYksxkQUKeEJG92LLSOsD/In44MBB2An9P5ueOU1PWAqc9EJKy\nXTnZYNDpgrO6ERTAEpUjRlaHXXeydvMQrj5yyGhIB3vOG/MT9oc4vtle8nRp\ng4FTzAdVdR2IoSC5k7yYIyLYQdJQMrxlcftcDQQHLpZ7jb7Cd59l/BkPdZ6v\nwcEVVgiM7Htqvzrab2LNA47EYWdw3wPGtNLMiYQgcgt7K31KmzAkNJnlx+zW\n70hWkeBzwiUaNfGZrW3ar+LnNF532l6pQA397GFh+WT7ybX5vYf0v4Z9T8y9\nU29I2DDx8mHyCRNvYoKRXUAYYDofADVQycnziAdLeSb+GZlKuJnH1Y3SJ0c0\nZ2dZEpEcsYP05WmLmmiJAZE15iirUw8BrXtRI2kjV00orKa5LaRLVHmTT8uo\nbG8kGKo4LakqaeyP/1VIVulMnepaiJHgRDytzzhqTcC70YQhsyPfUc/wRbBf\n6spzgPxkEU36CGHGUM5tkCSULXNox3ZcFO/lycjfZROf1cXBpNhUPy+R2iYB\noUngzi6qB7mGmRgUt0aexg3gnYxIcyw98TbBlozIWDNg8J94FZTcDWruuB+I\nYF7f\r\n=L7i5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD7Y7DFzwn3toJ7TUaDu8tN77cH2XtdAGzumxLd20wjzwIhAMaTAsY0sDmgil4vhjiPljdfVHrIVjSaZjAUe1Maytv/"}],"size":2052,"noattachment":false,"key":"/@putout/plugin-convert-generic-to-shorthand/-/@putout/plugin-convert-generic-to-shorthand-1.0.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-generic-to-shorthand_1.0.0_1592429404218_0.5403721573918099"},"_hasShrinkwrap":false,"readme":"# @putout/plugin-convert-generic-to-shorthand [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-convert-generic-to-shorthand.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-convert-generic-to-shorthand \"npm\"\n\n🐊[`Putout`](https://github.com/coderaiser/putout) plugin adds ability to convert `generic` to `shorthand` (https://stackoverflow.com/a/36843084/4536327).\nMoved to [`@putout/plugin-typescript`](https://github.com/coderaiser/putout/v24.0.2/master/packages/plugin-typescript#convert-generic-to-shorthand).\n\n## Install\n\n```\nnpm i @putout/plugin-convert-generic-to-shorthand -D\n```\n\n## Rule\n\nRule `convert-generic-to-shorthand` is enabled by default for `ts` and `tsx` files.\n\n```json\n{\n    \"rules\": {\n        \"convert-generic-to-shorthand\": \"on\"\n    }\n}\n```\n\n## ❌ Incorrect code example\n\n```ts\ninterface A {\n    x: Array<X>;\n    y: Array<Y>;\n}\n```\n\n## ✅ Correct code Example\n\n```ts\ninterface A {\n    x: X[];\n    y: Y[];\n}\n```\n\n## License\n\nMIT\n","publish_time":1592429404337,"_cnpm_publish_time":1592429404337,"dist-tags":{"latest":"2.0.1"}}