first commit
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				Types tests / Test (lts/*) (push) Has been cancelled
				
			
		
			
				
	
				Lint / Lint (lts/*) (push) Has been cancelled
				
			
		
			
				
	
				CodeQL / Analyze (javascript) (push) Has been cancelled
				
			
		
			
				
	
				CI / Test (20) (push) Has been cancelled
				
			
		
			
				
	
				CI / Test (22) (push) Has been cancelled
				
			
		
			
				
	
				CI / Test (24) (push) Has been cancelled
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	Types tests / Test (lts/*) (push) Has been cancelled
				
			Lint / Lint (lts/*) (push) Has been cancelled
				
			CodeQL / Analyze (javascript) (push) Has been cancelled
				
			CI / Test (20) (push) Has been cancelled
				
			CI / Test (22) (push) Has been cancelled
				
			CI / Test (24) (push) Has been cancelled
				
			This commit is contained in:
		
							
								
								
									
										35
									
								
								.svglintrc.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								.svglintrc.js
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,35 @@
 | 
			
		||||
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
 | 
			
		||||
          );
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
    ],
 | 
			
		||||
  },
 | 
			
		||||
  ignore: [
 | 
			
		||||
    "build/**",
 | 
			
		||||
    "l10n/**",
 | 
			
		||||
    "docs/**",
 | 
			
		||||
    "node_modules/**",
 | 
			
		||||
    "external/bcmaps/**",
 | 
			
		||||
    "external/builder/fixtures/**",
 | 
			
		||||
    "external/builder/fixtures_babel/**",
 | 
			
		||||
    "external/quickjs/**",
 | 
			
		||||
    "test/tmp/**",
 | 
			
		||||
    "test/pdfs/**",
 | 
			
		||||
    "web/locale/**",
 | 
			
		||||
    "*~/**",
 | 
			
		||||
  ],
 | 
			
		||||
};
 | 
			
		||||
		Reference in New Issue
	
	Block a user