chore: lint for unused arguments

This commit is contained in:
Evan You
2020-06-12 16:31:31 -04:00
parent 825ec1500f
commit 91fa52850a
7 changed files with 13 additions and 62 deletions

View File

@@ -62,7 +62,7 @@ export const transformSrcset: NodeTransform = (
if (options.base) {
const base = options.base
const set: string[] = []
imageCandidates.forEach(({ url, descriptor }, index) => {
imageCandidates.forEach(({ url, descriptor }) => {
descriptor = descriptor ? ` ${descriptor}` : ``
if (isRelativeUrl(url)) {
set.push((path.posix || path).join(base, url) + descriptor)