Socket
Book a DemoInstallSign in
Socket

@putout/plugin-reuse-duplicate-init

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@putout/plugin-reuse-duplicate-init

🐊Putout plugin adds ability to reuse duplicate init

latest
Source
npmnpm
Version
8.0.0
Version published
Weekly downloads
17K
-11.11%
Maintainers
1
Weekly downloads
 
Created
Source

@putout/plugin-reuse-duplicate-init NPM version

Functions are one of the fundamental building blocks it contains set of statements that performs a calculations, takes some input and returns an output. To use a function, you must define it somewhere in the scope from which you wish to call it.

(c) MDN

🐊Putout plugin adds ability to reuse duplicate init.

Install

npm i @putout/plugin-reuse-duplicate-init -D

Rule

{
    "rules": {
        "reuse-duplicate-init": "on"
    }
}

❌ Example of incorrect code

const putout = require('putout');

const {
    a,
    b,
    operator,
} = require('putout');

const {replaceWith} = operator;

✅ Example of correct code

const putout = require('putout');

const {
    a,
    b,
    operator,
} = putout;

const {replaceWith} = operator;

License

MIT

Keywords

putout

FAQs

Package last updated on 23 Apr 2025

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