@putout/plugin-convert-const-to-let
🐊Putout plugin adds ability to convert 'const' to 'let'
Last updated 2 years ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @putout/plugin-convert-const-to-let 
SYNC missed versions from official npm registry.

@putout/plugin-convert-const-to-let NPM version

The TypeError object represents an error when attempting to modify a value that cannot be changed.

(c) MDN

🐊Putout plugin adds ability to convert const to let to avoid TypeError. Check out in 🐊Putout Editor.

Install

npm i @putout/plugin-convert-const-to-let -D

Rule

{
    "rules": {
        "convert-const-to-let": "on"
    }
}

❌ Example of incorrect code

const a = 5;

a = 3;

✅ Example of correct code

let a = 5;

a = 3;

License

MIT

Current Tags

  • 3.0.0                                ...           latest (3 months ago)

11 Versions

  • 3.0.0                                ...           3 months ago
  • 2.1.0                                ...           5 months ago
  • 2.0.1                                ...           5 months ago
  • 2.0.0                                ...           5 months ago
  • 1.2.0                                ...           2 years ago
  • 1.1.3                                ...           2 years ago
  • 1.1.2                                ...           2 years ago
  • 1.1.1                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Total 1
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (0)
None
Dev Dependencies (6)
Dependents (1)

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