@putout/plugin-apply-montag

1.1.1 • Public • Published

@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

Package Sidebar

Install

npm i @putout/plugin-apply-montag

Weekly Downloads

1

Version

1.1.1

License

MIT

Unpacked Size

4.63 kB

Total Files

4

Last publish

Collaborators

  • coderaiser