{"name":"@putout/plugin-convert-generic-to-shorthand","version":"1.1.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","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":"^7.0.0","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^7.0.0","madrun":"^8.0.1"},"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.1.0","_nodeVersion":"14.15.4","_npmVersion":"6.14.10","dist":{"integrity":"sha512-ozpV/24bO3SVCsra2r14JQkNvl+6M4qCNiCIrL78VQlxcLzlU1F6XGMlwP/OlJv3AP6meo4g5MPLr7GrgFzADQ==","shasum":"e0a7850c2ec002f81c8607817fc12a3ab26cd6ee","tarball":"http://registry-npm.ywwl.com/@putout/plugin-convert-generic-to-shorthand/download/@putout/plugin-convert-generic-to-shorthand-1.1.0.tgz","fileCount":4,"unpackedSize":4287,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgn8+TCRA9TVsSAnZWagAALpgP+wfv2BdzsGQcX4qRGZP0\nB7EUV/x35bOPFjBkc3MapGVWI9rveC0MXQZ/tqA8Xzech5zAemM1VnmBqepk\nfaMHf0FNexiqBj7frfAb/I5qK1/6tCk1Eu+aP5c0zHIx02Qb2+qyPAHJhBwT\ntESGqW7r6HH6mxrGEyD+2m7+dlrOt1kcL0PVwfC9dgmJPLwd7g0d5LfyaOq3\n3jy3LtMG2G+/Gme5QHaQYXaBlvgz7jxnCeka+rClZmaftDICShoDWWoyWVoD\nawor2mItl9ODgsjOoMy4wR0d3kjXgpDOH5P3SO7IWUtR630CF3zqZx7i7S9A\nOXjopnBg8EnEuG/amAhlZTz86hh6i4yESqJ8iAhiSjF84gaNqSvy9qtttgsd\nI23W11Qw3RUimjPNartrVbxPG629ybcNjcN/IAPobCOwQrJ6NqPAac+RvDjA\n8Dz+0AiZtETvVfKgTisL0sxtfIMLIWM5lVLKueBat0snetq8pcf8fO4F+h59\npNZVe4lpxeGq6gUvEfAZTfovyPMEg7jq0vRQJzt36HKG9K4OJfrBi/QkUi31\nLhfvUfoU7vem1TGrd/ifIM4X2QVKVBNve/NPVMkO/fXDugGSsz9jPz4fTLMS\nweMyRC1e/YiskqJiVahYI9tiZjXnD8shtGi8hh/eidjgj1x4WZaUyQRbu8Px\nVusy\r\n=ONcl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDG1zQ4xelCOdCI0kUcbgUEyVryPSffkaLdXfdSdOqtqgIgZRwF/SOiYTDDNo1gGGA/4+MOYCblO35oWTYUSdTfVOc="}],"size":2060,"noattachment":false,"key":"/@putout/plugin-convert-generic-to-shorthand/-/@putout/plugin-convert-generic-to-shorthand-1.1.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_1.1.0_1621086098727_0.3496986564211466"},"_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":1621086098861,"_cnpm_publish_time":1621086098861,"dist-tags":{"latest":"2.0.1"}}