Skip to content

Commit 60b240b

Browse files
committed
fix lint
1 parent 81c5c48 commit 60b240b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/compiler/compile/Component.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ export default class Component {
680680

681681
const { body } = script.content;
682682
let i = body.length;
683-
while(--i >= 0) {
683+
while (--i >= 0) {
684684
const node = body[i];
685685
if (node.type === 'ImportDeclaration') {
686686
this.extract_imports(node);
@@ -721,7 +721,7 @@ export default class Component {
721721
const toRemove = [];
722722
const remove = (parent, prop, index) => {
723723
toRemove.unshift([parent, prop, index]);
724-
}
724+
};
725725

726726
walk(content, {
727727
enter(node, parent, prop, index) {
@@ -757,7 +757,7 @@ export default class Component {
757757
},
758758
});
759759

760-
for(const [parent, prop, index] of toRemove) {
760+
for (const [parent, prop, index] of toRemove) {
761761
if (parent) {
762762
if (index !== null) {
763763
parent[prop].splice(index, 1);

src/compiler/compile/utils/is_used_as_reference.ts

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export default function is_used_as_reference(
1212
return true;
1313
}
1414

15+
/* eslint-disable no-fallthrough */
1516
switch (parent.type) {
1617
// disregard the `foo` in `const foo = bar`
1718
case 'VariableDeclarator':

0 commit comments

Comments
 (0)