🐊Putout plugin adds ability to convert 'assignment' to 'declaration'
npm install @putout/plugin-convert-assignment-to-declaration[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-convert-assignment-to-declaration.svg?style=flat&longCache=true
[NPMURL]: https://npmjs.org/package/@putout/plugin-convert-assignment-to-declaration "npm"
> The assignment (=) operator is used to assign a value to a variable or property.
>
> (c) MDN
> The const declaration declares block-scoped local variables. The value of a constant can't be changed through reassignment using the assignment operator, but if a constant is an object, its properties can be added, updated, or removed.
>
> (c) MDN
🐊Putout plugin adds ability to convert assignment to declaration.
Checkout in 🐊Putout Editor.
Merged to @putout/plugin-assignment.
```
npm i @putout/plugin-convert-assignment-to-declaration -D
`json`
{
"rules": {
"convert-assignment-to-declaration": "on"
}
}
`js`
a = 5;
`js``
const a = 5;
MIT