Improve eslint rules (#3147)
* Add semi to ESLint rules * Add padded-blocks to ESLint rules * Add comma-dangle to ESLint rules * add config/webpack and storyboard * add streaming/ * yarn test:lint -- --fix
This commit is contained in:
		
					parent
					
						
							
								812fe90eca
							
						
					
				
			
			
				commit
				
					
						2e112e2406
					
				
			
		
					 170 changed files with 919 additions and 904 deletions
				
			
		|  | @ -1,6 +1,6 @@ | |||
| import React from 'react'; | ||||
| import ImmutablePropTypes from 'react-immutable-proptypes'; | ||||
| import punycode from 'punycode' | ||||
| import punycode from 'punycode'; | ||||
| 
 | ||||
| const IDNA_PREFIX = 'xn--'; | ||||
| 
 | ||||
|  | @ -9,7 +9,7 @@ const decodeIDNA = domain => { | |||
|     .split('.') | ||||
|     .map(part => part.indexOf(IDNA_PREFIX) === 0 ? punycode.decode(part.slice(IDNA_PREFIX.length)) : part) | ||||
|     .join('.'); | ||||
| } | ||||
| }; | ||||
| 
 | ||||
| const getHostname = url => { | ||||
|   const parser = document.createElement('a'); | ||||
|  | @ -20,7 +20,7 @@ const getHostname = url => { | |||
| class Card extends React.PureComponent { | ||||
| 
 | ||||
|   static propTypes = { | ||||
|     card: ImmutablePropTypes.map | ||||
|     card: ImmutablePropTypes.map, | ||||
|   }; | ||||
| 
 | ||||
|   renderLink () { | ||||
|  | @ -95,6 +95,7 @@ class Card extends React.PureComponent { | |||
|       return null; | ||||
|     } | ||||
|   } | ||||
| 
 | ||||
| } | ||||
| 
 | ||||
| export default Card; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue