3.0.0 β€’ Published 10 months ago

@putout/plugin-convert-const-to-let v3.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

@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

3.0.0

10 months ago

2.1.0

12 months ago

2.0.1

1 year ago

2.0.0

1 year ago

1.2.0

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago