New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@putout/plugin-montag

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@putout/plugin-montag

🐊Putout plugin adds ability apply 'montag'

3.0.0
latest
Source
npm
Version published
Maintainers
0
Created
Source

@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

Keywords

putout

FAQs

Package last updated on 02 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts