workflow: update eslint config to allow spread usage
This commit is contained in:
		
							parent
							
								
									392ca5dd88
								
							
						
					
					
						commit
						83aaa9b546
					
				@ -16,10 +16,11 @@ module.exports = {
 | 
			
		||||
    // most of the codebase are expected to be env agnostic
 | 
			
		||||
    'no-restricted-globals': ['error', ...DOMGlobals, ...NodeGlobals],
 | 
			
		||||
    // since we target ES2015 for baseline support, we need to forbid object
 | 
			
		||||
    // rest spread usage (both assign and destructure)
 | 
			
		||||
    // rest spread usage in destructure as it compiles into a verbose helper.
 | 
			
		||||
    // TS now compiles assignment spread into Object.assign() calls so that
 | 
			
		||||
    // is allowed.
 | 
			
		||||
    'no-restricted-syntax': [
 | 
			
		||||
      'error',
 | 
			
		||||
      'ObjectExpression > SpreadElement',
 | 
			
		||||
      'ObjectPattern > RestElement',
 | 
			
		||||
      'AwaitExpression'
 | 
			
		||||
    ]
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user