plugins/treeShakeCareIcons.ts
Showing 1 of 1 total issue
Function treeShakeCareIcons
has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring. Open
Open
export function treeShakeCareIcons( options: TreeShakeCareIconsOptions = { iconWhitelist: [] },): Plugin { const rootDir = path.resolve(__dirname, ".."); // update this if moving this code to a different file const lineIconNameRegex = /"l-[a-z]+(?:-[a-z]+)*"/g;
- Read upRead up
- Create a ticketCreate a ticket