6.0.0 β€’ Published 5 months ago

@putout/plugin-remove-unreferenced-variables v6.0.0

Weekly downloads
1,725
License
MIT
Repository
github
Last release
5 months ago

@putout/plugin-remove-unreferenced-variables NPM version

A variable is a named reference to a value.

(c) MDN

🐊Putout plugin adds ability to find and remove variables without references.

Install

npm i @putout/plugin-remove-unreferenced-variables -D

Rule

{
    "rules": {
        "remove-unreferenced-variables": "on"
    }
}

❌ Example of incorrect code

let a;
let b;

a = 5;
b = 6;

console.log(a);

βœ… Example of correct code

let a;

a = 5;

console.log(a);

License

MIT

5.0.0

7 months ago

6.0.0

5 months ago

4.0.0

1 year ago

3.1.0

2 years ago

3.0.0

2 years ago

2.2.0

3 years ago

2.0.0

4 years ago

1.2.0

4 years ago

1.1.0

5 years ago

1.0.0

5 years ago