{"name":"@putout/plugin-montag","version":"5.2.4","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.4","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":"9ff10f803fddf216ef72e1ab406c62e793008180","tarball":"http://registry-npm.ywwl.com/@putout/plugin-montag/download/@putout/plugin-montag-5.2.4.tgz","fileCount":9,"integrity":"sha512-xe/IMTWzpW9UlTvCW7gXUTK5CP8TTwQ0/6xoHjaOc91IYPMBpe1UtfhxLmiutyNfNwD1rU4fQl6RJs1MBZ+LkA==","signatures":[{"sig":"MEQCIHhrjHQYQYJ4DmNZW1vu0/BnPLspxwOMIEy4vLyndK5wAiB2P+BV5CCfYeymM3cqMXOw0VIuOqI9VNxCvWTAPcTazw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9531,"size":3500,"noattachment":false,"key":"/@putout/plugin-montag/-/@putout/plugin-montag-5.2.4.tgz"},"main":"lib/index.js","type":"module","engines":{"node":">=22"},"gitHead":"3e219d1fde9f5a42b44cc5e5809fe8b872c34d5e","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.2.0","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.4_1787384832441_0.6967662114488846","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":1787384832585,"_cnpm_publish_time":1787384832585,"dist-tags":{"latest":"5.2.5"}}