@putout/plugin-reuse-duplicate-init
🐊Putout plugin adds ability to reuse duplicate init
Last updated a year ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @putout/plugin-reuse-duplicate-init 
SYNC missed versions from official npm registry.

@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

Current Tags

  • 5.0.0                                ...           latest (a year ago)

7 Versions

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

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