{"name":"@putout/plugin-montag","version":"5.2.5","type":"module","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability apply 'montag'","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-montag#readme","main":"lib/index.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-apply","plugin","montag"],"devDependencies":{"@putout/eslint-flat":"^4.0.0","@putout/test":"^15.0.0","eslint":"^10.0.0","eslint-plugin-putout":"^31.0.0","madrun":"^13.0.0","nodemon":"^3.0.1","superc8":"^12.0.0"},"peerDependencies":{"putout":">=42"},"license":"MIT","engines":{"node":">=22"},"publishConfig":{"access":"public"},"gitHead":"ed7d6753391872d7175e6d4d8850609d2d49ebb6","_id":"@putout/plugin-montag@5.2.5","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"26.7.0","_npmVersion":"12.0.2","dist":{"integrity":"sha512-5KpsEt+PvMdXhQ+pCdJvIouH2CNjj6EzYNGDX28weGeo4417V3zC3J7O50WrlDxw/1BTBJ/Q3u6q1XV/7WjMog==","shasum":"b2d2a72e0a09994325d95e1cb2b3f30594f1e448","tarball":"http://registry-npm.ywwl.com/@putout/plugin-montag/download/@putout/plugin-montag-5.2.5.tgz","fileCount":9,"unpackedSize":9632,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCp9Z3AavursALT2UCuIyo7HY74R4/XQX23/zxuo7CqHwIhAIZoWoMB50WnclSDOXk2RScRid16Q8nT7Pi6ppp53Q9Y"}],"size":3506,"noattachment":false,"key":"/@putout/plugin-montag/-/@putout/plugin-montag-5.2.5.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-montag_5.2.5_1787471494837_0.4418775482937287"},"_hasShrinkwrap":false,"readme":"# @putout/plugin-apply-montag [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-apply-montag.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-apply-montag \"npm\"\n\n> Format multiline strings using tagged templates, instead of putting all lines into an array and joining to a string.\n>\n> (c) [**Montag**](https://github.com/coderaiser/montag)\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to apply [**Montag**](https://github.com/coderaiser/montag).\n\n## Install\n\n```\nnpm i @putout/plugin-apply-montag\n```\n\n## Rules\n\n- ✅ [add-newline-before-text](#add-newline-before-text);\n- ✅ [convert-default-to-named](#convert-default-to-named);\n- ✅ [apply](#apply);\n- ✅ [declare](#declare);\n- ✅ [remove-useless-space](#remove-useless-space);\n\n## Config\n\n```json\n{\n    \"rules\": {\n        \"montag/add-newline-before-text\": \"on\",\n        \"montag/apply\": \"on\",\n        \"montag/declare\": \"on\",\n        \"montag/convert-default-to-named\": \"on\",\n        \"montag/remove-useless-space\": \"on\"\n    }\n}\n```\n\n## add-newline-before-text\n\nCheckout in 🐊[Putout Editor](https://putout.cloudcmd.io/#/gist/cc3fc17690b0367cfeaba0f1bc889ec3/c462eeeaeb38bdd3fe87bc2a26c838793c993b50).\n\n### ❌ Example of incorrect code\n\n```js\nmontag`hello`;\n```\n\n### ✅ Example of correct code\n\n```js\nconst a = montag`\n    hello\n`;\n```\n\n## apply\n\n### ❌ Example of incorrect code\n\n```js\nconst a = [\n    'hello',\n    'world',\n].join('\\n');\n```\n\n### ✅ Example of correct code\n\n```js\nconst a = montag`\n    hello\n    world\n`;\n```\n\n## declare\n\n### ❌ Example of incorrect code\n\n```js\nconst a = montag`\n    hello\n    world\n`;\n```\n\n### ✅ Example of correct code\n\n```js\nimport montag from 'montag';\n\nconst a = montag`\n    hello\n    world\n`;\n```\n\n## convert-default-to-named\n\nCheckout in 🐊[Putout Editor](https://putout.cloudcmd.io/#/gist/729cfa698dd42d2f5a70d6646af37942/c908d7e03a986f39973a66e3899be3ce7e9bc9ba).\n\n### ❌ Example of incorrect code\n\n```js\nimport montag from 'montag';\n```\n\n### ✅ Example of correct code\n\n```js\nimport {montag} from 'montag';\n```\n\n## remove-useless-space\n\nCheckout in 🐊[Putout Editor](https://putout.cloudcmd.io/#/gist/fab78f67eb09a050e8517e5db27a0b38/e086519f13dce90899a5d6a9123c6919a6a73a9c).\n\n### ❌ Example of incorrect code\n\n```js\nconst a = montag`.\n    hello\n`;\n```\n\n### ✅ Example of correct code\n\n```js\nconst a = montag`\n    hello\n`;\n```\n\n## License\n\nMIT\n","publish_time":1787471494975,"_cnpm_publish_time":1787471494975,"dist-tags":{"latest":"5.2.5"}}