@putout/plugin-montag
v4.0.0
Published
šPutout plugin adds ability apply 'montag'
Maintainers
Readme
@putout/plugin-apply-montag 
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.
Install
npm i @putout/plugin-apply-montagRule
{
"rules": {
"montag/apply": "on",
"montag/declare": "on"
}
}apply
ā Example of incorrect code
const a = [
'hello',
'world',
].join('\n');ā Example of correct code
const a = montag`
hello
world
`;declare
ā Example of incorrect code
const a = montag`
hello
world
`;ā Example of correct code
import montag from 'montag';
const a = montag`
hello
world
`;License
MIT
