pull/3802/head
Tan Li Hau 5 years ago
parent 81c5c480e8
commit 60b240bf69

@ -721,7 +721,7 @@ export default class Component {
const toRemove = []; const toRemove = [];
const remove = (parent, prop, index) => { const remove = (parent, prop, index) => {
toRemove.unshift([parent, prop, index]); toRemove.unshift([parent, prop, index]);
} };
walk(content, { walk(content, {
enter(node, parent, prop, index) { enter(node, parent, prop, index) {

@ -12,6 +12,7 @@ export default function is_used_as_reference(
return true; return true;
} }
/* eslint-disable no-fallthrough */
switch (parent.type) { switch (parent.type) {
// disregard the `foo` in `const foo = bar` // disregard the `foo` in `const foo = bar`
case 'VariableDeclarator': case 'VariableDeclarator':

Loading…
Cancel
Save