@putout/plugin-montag
putout plugin adds ability apply 'montag'
Last updated 4 years ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @putout/plugin-montag 
SYNC missed versions from official npm registry.

@putout/plugin-apply-montag NPM version

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-montag

Rule

{
    "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

Current Tags

  • 4.0.0                                ...           latest (a year ago)

4 Versions

  • 4.0.0                                ...           a year ago
  • 3.0.0                                ...           a year ago
  • 2.0.0                                ...           3 years ago
  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 0
Dependencies (0)
None
Dev Dependencies (8)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |