1.1.1 ā¢ Published 2 years ago
@putout/plugin-apply-montag v1.1.1
@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
šPutout plugin adds ability to apply Montag. Renamed to @putout/plugin-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