@putout/plugin-remove-unreferenced-variables
🐊Putout plugin adds ability to find and remove unreferenced variables
Last updated 4 months ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @putout/plugin-remove-unreferenced-variables 
SYNC missed versions from official npm registry.

@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. Merged with @putout/plugin-variables.

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

Current Tags

  • 6.0.1                                ...           latest (4 months ago)

11 Versions

  • 6.0.1                                ...           4 months ago
  • 6.0.0                                ...           10 months ago
  • 5.0.0                                ...           a year ago
  • 4.0.0                                ...           2 years ago
  • 3.1.0                                ...           3 years ago
  • 3.0.0                                ...           3 years ago
  • 2.2.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
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (0)
None
Dev Dependencies (9)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |