@putout/plugin-apply-montag
Format multiline strings using tagged templates, instead of puting all lines into an array and joining to a string.
(c) Montag
Install
npm i @putout/plugin-apply-montag
Rule
{
"rules": {
"apply-montag": "on"
}
}
❌ Example of incorrect code
const a = [
'hello',
'world',
].join('\n');
✅ Example of correct code
const a = montag`
hello
world
`;
License
MIT