@putout/plugin-montag
putout plugin adds ability apply 'montag'
Last updated 5 years ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm 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. Renamed to @putout/plugin-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

  • 5.2.5                                ...           latest (3 months ago)

15 Versions

  • 5.2.5                                ...           3 months ago
  • 5.2.4                                ...           3 months ago
  • 5.2.3                                ...           3 months ago
  • 5.2.2                                ...           3 months ago
  • 5.2.1                                ...           3 months ago
  • 5.2.0                                ...           3 months ago
  • 5.1.1                                ...           7 months ago
  • 5.1.0                                ...           7 months ago
  • 5.0.2                                ...           8 months ago
  • 5.0.1                                ...           8 months ago
  • 5.0.0                                ...           8 months ago
  • 4.0.0                                ...           2 years ago
  • 3.0.0                                ...           2 years ago
  • 2.0.0                                ...           4 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Total 2
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (8)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE