8.0.0 β€’ Published 8 months ago

@putout/plugin-reuse-duplicate-init v8.0.0

Weekly downloads
2,368
License
MIT
Repository
github
Last release
8 months ago

@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

7.0.0

9 months ago

8.0.0

8 months ago

6.0.0

1 year ago

5.0.0

3 years ago

4.0.0

4 years ago

3.0.0

4 years ago

2.0.0

4 years ago

1.2.0

5 years ago

1.1.0

6 years ago

1.0.0

6 years ago