1.1.1 ā€¢ Published 2 years ago

@putout/plugin-apply-montag v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@putout/plugin-apply-montag NPM version

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