Socket
Socket
Sign inDemoInstall

@putout/plugin-reuse-duplicate-init

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @putout/plugin-reuse-duplicate-init

🐊Putout plugin adds ability to reuse duplicate init


Version published
Weekly downloads
16K
decreased by-13.95%
Maintainers
1
Install size
4.89 kB
Created
Weekly downloads
 

Readme

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

FAQs

Last updated on 14 Jun 2023

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc