mirror of
https://github.com/simple-icons/simple-icons.git
synced 2024-12-16 01:10:30 +02: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';
|
||||
|
||||
/**
|
||||
@ -814,8 +814,12 @@ export default {
|
||||
return collinearSegments;
|
||||
};
|
||||
|
||||
const iconPath = getIconPath($, filepath),
|
||||
collinearSegments = getCollinearSegments(iconPath);
|
||||
const iconPath = getIconPath($, filepath);
|
||||
if (!updateIgnoreFile && isIgnored(reporter.name, iconPath)) {
|
||||
return;
|
||||
}
|
||||
|
||||
const collinearSegments = getCollinearSegments(iconPath);
|
||||
if (collinearSegments.length === 0) {
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user