5.0.0 β’ Published 5 months ago
@putout/plugin-convert-const-to-let v5.0.0
@putout/plugin-convert-const-to-let 
The
TypeErrorobject 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 -DRule
{
"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