@putout/plugin-montag
v5.0.2
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-montagRules
Config
{
"rules": {
"montag/add-newline-before-text": "on",
"montag/apply": "on",
"montag/declare": "on",
"montag/remove-useless-space": "on"
}
}add-newline-before-text
Checkout in 🐊Putout Editor.
❌ Example of incorrect code
montag`hello`;✅ Example of correct code
const a = montag`
hello
`;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
`;remove-useless-space
Checkout in 🐊Putout Editor.
❌ Example of incorrect code
const a = montag`.
hello
`;✅ Example of correct code
const a = montag`
hello
`;License
MIT
