UNPKG

@putout/plugin-apply-montag

Version:
50 lines (35 loc) • 970 B
# @putout/plugin-apply-montag [![NPM version][NPMIMGURL]][NPMURL] [NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-apply-montag.svg?style=flat&longCache=true [NPMURL]: https://npmjs.org/package/@putout/plugin-apply-montag"npm" > Format multiline strings using tagged templates, instead of puting all lines into an array and joining to a string. > > (c) [**Montag**](https://github.com/coderaiser/montag) 🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to apply [**Montag**](https://github.com/coderaiser/montag). Renamed to [@putout/plugin-montag](https://www.npmjs.com/package/@putout/plugin-montag). ## Install ``` npm i @putout/plugin-apply-montag ``` ## Rule ```json { "rules": { "apply-montag": "on" } } ``` ## āŒ Example of incorrect code ```js const a = [ 'hello', 'world', ].join('\n'); ``` ## āœ… Example of correct code ```js const a = montag` hello world `; ``` ## License MIT