chore: fix some lints automatically (#8788)
* chore: fix some lints automatically Fixed lints that were automatically fixable with `eslint --fix`. * fix type * workaround for empty interface lint
This commit is contained in:
@ -9,7 +9,7 @@ export default {
|
||||
} else {
|
||||
return el.parentElement ? getBgColor(el.parentElement) : 'transparent';
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
const parentBg = getBgColor(src.parentElement);
|
||||
|
||||
|
@ -25,12 +25,12 @@ function calc(src: Element) {
|
||||
return;
|
||||
}
|
||||
if (info.intersection) {
|
||||
info.intersection.disconnect()
|
||||
info.intersection.disconnect();
|
||||
delete info.intersection;
|
||||
};
|
||||
}
|
||||
|
||||
info.fn(width, height);
|
||||
};
|
||||
}
|
||||
|
||||
export default {
|
||||
mounted(src, binding, vn) {
|
||||
|
@ -9,7 +9,7 @@ export default {
|
||||
} else {
|
||||
return el.parentElement ? getBgColor(el.parentElement) : 'transparent';
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
const parentBg = getBgColor(src.parentElement);
|
||||
|
||||
|
@ -60,9 +60,9 @@ function calc(el: Element) {
|
||||
return;
|
||||
}
|
||||
if (info.intersection) {
|
||||
info.intersection.disconnect()
|
||||
info.intersection.disconnect();
|
||||
delete info.intersection;
|
||||
};
|
||||
}
|
||||
|
||||
mountings.set(el, Object.assign(info, { previousWidth: width }));
|
||||
|
||||
|
Reference in New Issue
Block a user