{"name":"@putout/plugin-montag","version":"5.1.1","keywords":["putout","putout-plugin","putout-plugin-apply","plugin","montag"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-montag@5.1.1","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-montag#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"61ecd74737aff30e05fd7654e83285feb5518a4d","tarball":"http://registry-npm.ywwl.com/@putout/plugin-montag/download/@putout/plugin-montag-5.1.1.tgz","fileCount":9,"integrity":"sha512-Filz/H7kGHRcDvcVeh4ck78hpSYSikmbbUJCQBKDuODAt3kyfBCgoBU3qXiBrAgVGD8ay3f902RPtZ9y0DfStA==","signatures":[{"sig":"MEUCICScz6nn3ZxcajpmIv/Kev4KnyjrMx0yaOEURCr376ByAiEApul12Za2LkasNZ6lMy3c/VtafDn5pcDwTtdulu1qpWQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9097,"size":3416,"noattachment":false,"key":"/@putout/plugin-montag/-/@putout/plugin-montag-5.1.1.tgz"},"main":"lib/index.js","type":"module","engines":{"node":">=22"},"gitHead":"670c8f98e4695fa28d6338e1b8cf4d74a369fef4","release":false,"scripts":{"lint":"madrun lint","test":"madrun test","report":"madrun report","coverage":"madrun coverage","fix:lint":"madrun fix:lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","watch:test":"madrun watch:test"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"changelog":false,"repository":{"url":"git+https://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"11.4.2","description":"🐊Putout plugin adds ability apply 'montag'","directories":{},"_nodeVersion":"25.9.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^10.0.0","madrun":"^13.0.0","nodemon":"^3.0.1","superc8":"^12.0.0","@putout/test":"^15.0.0","eslint-plugin-n":"^17.0.0","@putout/eslint-flat":"^4.0.0","eslint-plugin-putout":"^31.0.0"},"peerDependencies":{"putout":">=42"},"_npmOperationalInternal":{"tmp":"tmp/plugin-montag_5.1.1_1777903159770_0.6540427059814236","host":"s3://npm-registry-packages-npm-production"},"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":1777903159960,"_cnpm_publish_time":1777903159960,"dist-tags":{"latest":"5.2.5"}}