2024-08-30 10:52:52 +02:00
|
|
|
export default {
|
|
|
|
rules: {
|
|
|
|
valid: true,
|
|
|
|
|
|
|
|
custom: [
|
|
|
|
(reporter, $, ast, { filename }) => {
|
|
|
|
reporter.name = "no-svg-fill-context-fill";
|
|
|
|
|
|
|
|
const svg = $.find("svg");
|
|
|
|
const fill = svg.attr("fill");
|
|
|
|
if (fill === "context-fill") {
|
|
|
|
reporter.error(
|
|
|
|
"Fill attribute on svg element must not be set to 'context-fill'",
|
|
|
|
svg[0],
|
|
|
|
ast
|
|
|
|
);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2024-08-30 19:18:36 +02:00
|
|
|
ignore: [
|
|
|
|
"build/**",
|
|
|
|
"l10n/**",
|
|
|
|
"docs/**",
|
|
|
|
"node_modules/**",
|
|
|
|
"external/bcmaps/**",
|
|
|
|
"external/builder/fixtures/**",
|
|
|
|
"external/builder/fixtures_babel/**",
|
|
|
|
"external/quickjs/**",
|
|
|
|
"test/tmp/**",
|
|
|
|
"test/pdfs/**",
|
|
|
|
"web/locale/**",
|
|
|
|
"*~/**",
|
|
|
|
],
|
2024-08-30 10:52:52 +02:00
|
|
|
};
|