mirror of
https://github.com/Mibew/simple-icons.git
synced 2025-01-19 16:40:35 +03:00
Fix collinear-segments rule of SVG linting not executed (#10589)
This commit is contained in:
parent
ce2f63e591
commit
4f1b9b8946
File diff suppressed because one or more lines are too long
@ -649,7 +649,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
(reporter, $, ast, filepath) => {
|
(reporter, $, ast, { filepath }) => {
|
||||||
reporter.name = 'collinear-segments';
|
reporter.name = 'collinear-segments';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -814,8 +814,12 @@ export default {
|
|||||||
return collinearSegments;
|
return collinearSegments;
|
||||||
};
|
};
|
||||||
|
|
||||||
const iconPath = getIconPath($, filepath),
|
const iconPath = getIconPath($, filepath);
|
||||||
collinearSegments = getCollinearSegments(iconPath);
|
if (!updateIgnoreFile && isIgnored(reporter.name, iconPath)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const collinearSegments = getCollinearSegments(iconPath);
|
||||||
if (collinearSegments.length === 0) {
|
if (collinearSegments.length === 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user