mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-03 08:00:24 +08:00 
			
		
		
		
	Enable shorthands in declaration-strict-value linter (#27597)
				
					
				
			Enable [shorthand matching](https://github.com/AndyOGo/stylelint-declaration-strict-value#expandshorthand) in this lint rule and match color properties by regex. Patterns like this will now fail lint: ```css background: #123456; border: 1px sold rgba(0,0,0,0); ```
This commit is contained in:
		@@ -103,7 +103,7 @@ rules:
 | 
			
		||||
  property-no-vendor-prefix: null
 | 
			
		||||
  rule-empty-line-before: null
 | 
			
		||||
  rule-selector-property-disallowed-list: null
 | 
			
		||||
  scale-unlimited/declaration-strict-value: [[color, background-color, border-color, font-weight], {ignoreValues: /^(inherit|transparent|unset|initial|currentcolor|none)$/, ignoreFunctions: false, disableFix: true}]
 | 
			
		||||
  scale-unlimited/declaration-strict-value: [[/color$/, font-weight], {ignoreValues: /^(inherit|transparent|unset|initial|currentcolor|none)$/, ignoreFunctions: false, disableFix: true, expandShorthand: true}]
 | 
			
		||||
  selector-attribute-name-disallowed-list: null
 | 
			
		||||
  selector-attribute-operator-allowed-list: null
 | 
			
		||||
  selector-attribute-operator-disallowed-list: null
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user