Format multiline strings using tagged templates, instead of putting all lines into an array and joining to a string.
(c) Montag
🐊Putout plugin adds ability to apply Montag. Renamed to @putout/plugin-montag.
npm i @putout/plugin-apply-montag
{
"rules": {
"montag/apply": "on",
"montag/declare": "on"
}
}
const a = [
'hello',
'world',
].join('\n');
const a = montag`
hello
world
`;
const a = montag`
hello
world
`;
import montag from 'montag';
const a = montag`
hello
world
`;
MIT