@putout/plugin-convert-const-to-let
🐊Putout plugin adds ability to convert 'const' to 'let'
Last updated 4 months ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm 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. Merged with @putout/plugin-variables.

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

  • 5.0.1                                ...           latest (4 months ago)

16 Versions

  • 5.0.1                                ...           4 months ago
  • 5.0.0                                ...           10 months ago
  • 4.2.0                                ...           a year ago
  • 4.1.0                                ...           a year ago
  • 4.0.0                                ...           a year ago
  • 3.0.0                                ...           2 years ago
  • 2.1.0                                ...           2 years ago
  • 2.0.1                                ...           2 years ago
  • 2.0.0                                ...           2 years ago
  • 1.2.0                                ...           4 years ago
  • 1.1.3                                ...           4 years ago
  • 1.1.2                                ...           4 years ago
  • 1.1.1                                ...           4 years ago
  • 1.1.0                                ...           4 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 0
Dependencies (0)
None
Dev Dependencies (7)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |