{"name":"@putout/plugin-convert-generic-to-shorthand","version":"2.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":"https://github.com/coderaiser/putout/tree/master/packages/plugin-convert-generic-to-shorthand","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","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","generic","shorthand"],"devDependencies":{"@putout/test":"^3.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^11.0.0","madrun":"^8.0.1"},"peerDependencies":{"putout":">=21"},"license":"MIT","engines":{"node":">=14"},"publishConfig":{"access":"public"},"gitHead":"ed8d16289a8aba5de0fc0e6da345192bb28c470d","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-convert-generic-to-shorthand@2.0.0","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-3G1cDj4aa7fz48iF0iCvV3GHIOyOD4wONdS6OwvIkYEuEDlbOBKzlcbjTBJfwaqETBFnn4M7V0yL/9p+yK2p6A==","shasum":"da0b8707eb5c264a0a5b3d565a8aa2566309ca07","tarball":"http://registry-npm.ywwl.com/@putout/plugin-convert-generic-to-shorthand/download/@putout/plugin-convert-generic-to-shorthand-2.0.0.tgz","fileCount":4,"unpackedSize":4217,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhl11FCRA9TVsSAnZWagAAgeMP/RC8m0HWGYHhj5OUe41+\n6g0hLAcT9zMWAdQM/BbpHQ/N+78wW0L6eiZiDkna1jgZHAw0GTZcw6NwNmNr\nDy62KbD2q8GVpRuFoV3GM4e6ESHTDDN6uWF/EWSHSC1yZAknfk4LpC3/zkV1\n0RsnMM7vkn9OK90VL7Fl8nZXX/ukt+A8v2udUDCq5rbR66qOac+dq7MGxtm+\n607OuL1YsurXhXOcdQ0I1MBcrOkaPEYhY8vj6yPAXT38UrJtQDzhLDqWwsVS\nMTUODimEhAHIN38vGMJDkK4Be/iYSDPqPF4/6g9zxWMSPDnod7V9szXp1Fb8\nUW8M0YY4hhti7jWLE1CWGjTK8Io3tmwpAawGxcsYehhm5K4wRkUbW8g2r2NP\n0wr3iCL/IP/E76cENDTU828Jo+Gzq8fz2gZVt0XRlpo7//jEn0R2x40ETbnB\nP8Jb1f3H+ozur3ZhPj7yHVaF7JuG235Wv2EhqhvPq7ptyW4SMEx/NpRu7b32\nHKzfEOYOasuzxq8uo8KBwT10+jYEaiH1g1KzpGlt5Obxk1Pro04YzskZHrAr\nZCl9gJ09uNdYDIKoc11CrId30RRhvfm8SKn2TDXq5nLJbaDLle3GhYeuvYeX\nOPNpiV+SL1tsnESN+KiMETLFl1DwiexJPfebC0mx8m2Cq2+VWfeTLPq3paXH\ncR0d\r\n=YYSF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCH8dgTZ9dnYSNE/14JI/y9ryUl/2euOfQ5HS0S74mUfwIge1Yhci0uFV/lBT07rbujf/Pu0R7FCsmVaAotBZXmE34="}],"size":2010,"noattachment":false,"key":"/@putout/plugin-convert-generic-to-shorthand/-/@putout/plugin-convert-generic-to-shorthand-2.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-convert-generic-to-shorthand_2.0.0_1637309765817_0.3936957581736906"},"_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":1637309765974,"_cnpm_publish_time":1637309765974,"dist-tags":{"latest":"2.0.1"}}