$ npm install @putout/plugin-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.
npm i @putout/plugin-apply-montag
{
"rules": {
"montag/add-newline-before-text": "on",
"montag/apply": "on",
"montag/declare": "on",
"montag/convert-default-to-named": "on",
"montag/remove-useless-space": "on"
}
}
Checkout in πPutout Editor.
montag`hello`;
const a = montag`
hello
`;
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
`;
Checkout in πPutout Editor.
import montag from 'montag';
import {montag} from 'montag';
Checkout in πPutout Editor.
const a = montag`.
hello
`;
const a = montag`
hello
`;
MIT
© 2010 - cnpmjs.org x YWFE | Home | YWFE