{"name":"@putout/plugin-remove-useless-types-from-constants","version":"1.0.0","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"putout plugin adds ability to convert any to primitive type","homepage":"http://github.com/coderaiser/putout","main":"lib/remove-useless-types-from-constants.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-remove-useless-types-from-constants@1.0.0","_nodeVersion":"15.11.0","_npmVersion":"7.6.0","dist":{"integrity":"sha512-G5WChM6IlZDitMWkKGljgqhju8n16jgc8qKqxHIR46usLpvVN19O1k9H5clLHTk9/IYfI3j3mdUZ2mcruGLFSw==","shasum":"acc5c138299b33a8aefc405f334e11bb79671f49","tarball":"http://registry-npm.ywwl.com/@putout/plugin-remove-useless-types-from-constants/download/@putout/plugin-remove-useless-types-from-constants-1.0.0.tgz","fileCount":4,"unpackedSize":4954,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgS4kFCRA9TVsSAnZWagAA5sEP/3715ZgUzRzq0owoysbY\nl31u0OK2jpbqihRke+ek/JZ1ramzi5wq1zKyyvIJA0ATkbU/XvAvehH+A5bW\nuJ4VVv9i4g+Ew6sJLzF85TPIAC261/47FHv6Ht+nDOmCV6cngkEIgbRM2WUB\nCrgzcIoWCMboBcHHPpCbFfptrv8g5ldHhIM2YdkK9AKieth4BEVl4njZffSJ\nGiflg1h5aZDPUFL9IeKdCksJKKznozWaKAtx2ae3kSBgtNIQwIrp3LsKHMjy\n6zjRQtrn5YwNDZsOEXqg+n0c3A8w3Lqt1IH9ZytPHC6dWKLemd2ouIx0beFj\nXJbS4HcJKT/CIIUn4Mz7/pqPBku20iNnAV2mWoDtfkHfsrE313pI2EYE1eXS\n5t9LnMIvhPrjqrFqGsKD2zxSLbfyotC6vOTGaSh9PP1N+BNzr/HGqc6Fnzjn\nJt3m0aez0NCywL+m2kHiKAAZfweT1T+VNtxChCA64vUaHtezQvSHPbHNnvaE\n8IqSU+iLekfMXnlpQ6W7NUaNcHUKMMSPm30wJZ7xRB8QnZ9RyMuP223ifJdx\nFB76R0p0T3J0HjHt5g6wlKZ/GxG4YtFS3HRpqm3KiLosSzqlSSjy86TmB+Pr\nHAcEWkYhXFPwOza72IYTAMap5njpsDS/Pckp8fJ8t8DbZdn3jYP8m+kg5Tvm\noaos\r\n=zO2n\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC0oMwFPdi63nAaMRMbwjO5EDX7Ju881ohuzaLkr/X+BQIhANwWp77rot74Bw7j5UptdyHdIfNhRlSsDarqCYBx/hoH"}],"size":2162,"noattachment":false,"key":"/@putout/plugin-remove-useless-types-from-constants/-/@putout/plugin-remove-useless-types-from-constants-1.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-remove-useless-types-from-constants_1.0.0_1615563013188_0.16128441498937462"},"_hasShrinkwrap":false,"readme":"# @putout/plugin-remove-useless-types-from-constants [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-remove-useless-types-from-constants.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-remove-useless-types-from-constants \"npm\"\n\n🐊[`Putout`](https://github.com/coderaiser/putout) plugin adds ability to remove useless types from constants.\nMoved to [`@putout/plugin-typescript`](https://github.com/coderaiser/putout/tree/v24.0.2/packages/plugin-typescript#remove-useless-types-from-constants).\n\n## Install\n\n```\nnpm i @putout/plugin-remove-useless-types-from-constants -D\n```\n\n## Rule\n\nRule `remove-useless-types-from-constants` is enabled by default for `ts` and `tsx` files, to disable add to `.putout.json`:\n\n```json\n{\n    \"rules\": {\n        \"remove-useless-types-from-constants\": \"off\"\n    }\n}\n```\n\n## ❌ Incorrect code example\n\n```ts\nconst x: any = 5;\n```\n\n## ✅ Correct code Example\n\n```ts\nconst x = 5;\n```\n\n## License\n\nMIT\n","publish_time":1615563013421,"_cnpm_publish_time":1615563013421,"dist-tags":{"latest":"1.2.1"}}