@putout/plugin-apply-montag
Version:
putout plugin adds ability apply 'montag'
50 lines (35 loc) ⢠970 B
Markdown
# @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