@putout/plugin-convert-const-to-let
Advanced tools
Comparing version
@@ -13,3 +13,9 @@ 'use strict'; | ||
VariableDeclaration: (path) => { | ||
for (const binding of values(path.scope.bindings)) { | ||
const {scope} = path; | ||
const {declare} = path.node; | ||
if (declare) | ||
return; | ||
for (const binding of values(scope.bindings)) { | ||
const {parentPath, node} = binding.path; | ||
@@ -16,0 +22,0 @@ const {init} = node; |
{ | ||
"name": "@putout/plugin-convert-const-to-let", | ||
"version": "2.0.1", | ||
"version": "2.1.0", | ||
"type": "commonjs", | ||
@@ -5,0 +5,0 @@ "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)", |
4670
2.66%33
13.79%