@putout/plugin-remove-unused-variables
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -335,2 +335,9 @@ 'use strict'; | ||
ExportNamedDeclaration(path) { | ||
const {declaration} = path.node; | ||
if (isFunctionDeclaration(declaration)) | ||
use(path, declaration.id.name); | ||
}, | ||
FunctionDeclaration(path) { | ||
@@ -337,0 +344,0 @@ const { |
@@ -135,5 +135,2 @@ 'use strict'; | ||
const getLocLine = ({loc}) => { | ||
if (!loc) | ||
debugger; | ||
const { | ||
@@ -140,0 +137,0 @@ start, |
{ | ||
"name": "@putout/plugin-remove-unused-variables", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)", | ||
@@ -5,0 +5,0 @@ "description": "putout plugin adds ability to find and remove unused variables", |
22362
561