mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	lint: Exclude i18n string concatenation exposed by Prettier.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							67773bc834
						
					
				
				
					commit
					facd860a6c
				
			@@ -114,7 +114,10 @@ js_rules = RuleList(
 | 
			
		||||
         'exclude': {'static/js/templates.js'},
 | 
			
		||||
         'description': 'Do not pass a variable into i18n.t; it will not be exported to Transifex for translation.'},
 | 
			
		||||
        {'pattern': r'i18n\.t\(.+\).*\+',
 | 
			
		||||
         'description': 'Do not concatenate i18n strings'},
 | 
			
		||||
         'description': 'Do not concatenate i18n strings',
 | 
			
		||||
         'exclude_line': {
 | 
			
		||||
             ('static/js/narrow.js', 'i18n.t("Some common words were excluded from your search.") +'),
 | 
			
		||||
         }},
 | 
			
		||||
        {'pattern': r'\+.*i18n\.t\(.+\)',
 | 
			
		||||
         'description': 'Do not concatenate i18n strings'},
 | 
			
		||||
        {'pattern': '[.]html[(]',
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user