Skip to content

Commit f676b9a

Browse files
lancelifwh1990
authored andcommitted
chore: Ignore unused declared
1 parent f3a6b65 commit f676b9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libs/generateComponent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ const addAttribute = (domName: string, sub: XmlData['svg']['symbol'][number]['pa
174174
} else {
175175
// convert attribute name to camel case, e.g fill-opacity to fillOpacity
176176
const reg = /-(\w)/g;
177-
const camelAttributeName = attributeName.replace(reg, (a,b) => b.toUpperCase());
177+
const camelAttributeName = attributeName.replace(reg, (_a,b) => b.toUpperCase());
178178
template += `\n${whitespace(counter.baseIdent + 4)}${camelAttributeName}="${sub.$[attributeName]}"`;
179179
}
180180
}

0 commit comments

Comments
 (0)