{"name":"@putout/plugin-montag","version":"5.2.0","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.2.0","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":"dae4b518aa3aa5a1768fc5ca989f0ffc904e2963","tarball":"http://registry-npm.ywwl.com/@putout/plugin-montag/download/@putout/plugin-montag-5.2.0.tgz","fileCount":9,"integrity":"sha512-OM/q7BT8dSjXV68S4hd7NB9SQjLxoIIO1F6MwoyvvN0BozzYvIDNfxF6Tha/2cGiPVbBNnF0X82UuqJ5eao9qw==","signatures":[{"sig":"MEUCIARkewoxOZKPOyMvVmtV2AFQlAZj7GBySNL9a/DEUOVlAiEAmj+jNpe4seDKdd6i2pdCBYLImkkMr1x/r7FEXYHz864=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9483,"size":3481,"noattachment":false,"key":"/@putout/plugin-montag/-/@putout/plugin-montag-5.2.0.tgz"},"main":"lib/index.js","type":"module","engines":{"node":">=22"},"gitHead":"83a480226e069b97cc1fc8b5b46e6a553c3c0f4d","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":"12.0.2","description":"🐊Putout plugin adds ability apply 'montag'","directories":{},"_nodeVersion":"26.7.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","@putout/eslint-flat":"^4.0.0","eslint-plugin-putout":"^31.0.0"},"peerDependencies":{"putout":">=42"},"_npmOperationalInternal":{"tmp":"tmp/plugin-montag_5.2.0_1787230779306_0.12276598807001982","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":1787230779531,"_cnpm_publish_time":1787230779531,"dist-tags":{"latest":"5.2.5"}}