-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: lint errors from adding recordDOM
option
#1334
fix: lint errors from adding recordDOM
option
#1334
Conversation
|
recordDOM
option
@@ -5,7 +5,6 @@ import { | |||
tagMap, | |||
elementNode, | |||
BuildCache, | |||
attributes, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unused
function isStylesheetLoaded(link: HTMLLinkElement) { | ||
if (!link.getAttribute('href')) return true; // nothing to load | ||
return link.sheet !== null; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unused and not exported
@@ -1,4 +1,3 @@ | |||
import type { Mirror } from 'rrweb-snapshot'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unused
// TODO: `_d` is not being used, unless there are some side-effects | ||
let _d = imgd?.data; | ||
_d = JSON.parse(data.args[0]) as Uint8ClampedArray; | ||
imgd && ctx?.putImageData(imgd, 0, 0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't remove these because I wasn't sure if there were any side-effects
no-unused-vars
error instead of warn, ignores vars/args that start with underscore ("_")