mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	chore: Fix linting
This commit is contained in:
		
							parent
							
								
									fe39815777
								
							
						
					
					
						commit
						eaa20927c0
					
				| @ -6,6 +6,8 @@ before_install: yarn global add greenkeeper-lockfile@1 | ||||
| before_script: greenkeeper-lockfile-update | ||||
| script: yarn run test:ci | ||||
| after_script: greenkeeper-lockfile-upload | ||||
| cache: | ||||
|     yarn: true | ||||
| env: | ||||
|   global: | ||||
|     secure: F5bMAyZEYW7LBwV+L3sdW+jhA+4H9dKte70GlhtPQdjGuFM0bWb4DIyECOUj0HIVjLKq8lDx4jolbNDvjccecteGEgZEcHKCE/WRpOlB3R8WhQdsIk3j+FaMRQNI2aH6hmRVUysEf6RuTIcYcESIExP1eGcy79++Zon953uM26k6NYKvWjURkn8fLM/Bj6RXKZNBmzdCsvHNPSF6R+VC0rU3NdDBD+r89vA7cz9zkXCe5LYnVzcnzSrsBTExpZrc0PVDPxNBZrJdDSe9KsEWEO+Ag2kZAEmv2xedOCaFCO6PiniZgCBKkw2zQM4ittaP0NnK+QBtYOffhuxoGxqT953sz6UTtDJiYWy+68N57zECQr4TFTAL2F8Cjh2Z/KYO6jxlKGL/1kL2UO/1ovfjJeFfl+2tm/F1bYj7dYA+swS/72cDSH0nrrEuv6mAA5hWoLD3m55bqg9kwjYPO8skzlLNLJ2Q0k0kpd3c3zveNOF9cKZ87pFbShi5sWj3vWm8FMZudjday6MBjghGKGICI8NpQZFnETrthXWqUd5+PfxIqbEov5jZQAS0FrHc2wfIneRmBoP64ST9A5SA+9lA81qK7iw9eDi/e2/C7CsbgWtL4CTvk37HerCPTv2hDxZuUxgJ3p5QoOkdU+TWSvnY7Z+HnniRG0nMh90XLwQiBQU= | ||||
|  | ||||
| @ -11,7 +11,4 @@ const mapStateToProps = state => ({ | ||||
|     uiConfig: state.uiConfig.toJS(), | ||||
| }); | ||||
| 
 | ||||
| export default connect( | ||||
|     mapStateToProps, | ||||
|     mapDispatchToProps | ||||
| )(ShowApiDetailsComponent); | ||||
| export default connect(mapStateToProps, mapDispatchToProps)(ShowApiDetailsComponent); | ||||
|  | ||||
| @ -69,12 +69,14 @@ DataTableHeader.propTypes = { | ||||
| export const FormButtons = ({ submitText = 'Create', onCancel }) => ( | ||||
|     <div> | ||||
|         <Button type="submit" ripple raised primary icon="add"> | ||||
|             <Icon name="add" />    | ||||
|             <Icon name="add" /> | ||||
|                 | ||||
|             {submitText} | ||||
|         </Button> | ||||
|           | ||||
|         <Button type="cancel" ripple raised onClick={onCancel} style={{ float: 'right' }}> | ||||
|             <Icon name="cancel" />    Cancel | ||||
|             <Icon name="cancel" /> | ||||
|                 Cancel | ||||
|         </Button> | ||||
|     </div> | ||||
| ); | ||||
|  | ||||
| @ -13,7 +13,8 @@ class ViewFeatureComponent extends Component { | ||||
|                 <StrategiesSection configuredStrategies={configuredStrategies} /> | ||||
|                 <br /> | ||||
|                 <Button type="cancel" ripple raised onClick={onCancel} style={{ float: 'right' }}> | ||||
|                     <Icon name="cancel" />    Cancel | ||||
|                     <Icon name="cancel" /> | ||||
|                         Cancel | ||||
|                 </Button> | ||||
|             </section> | ||||
|         ); | ||||
|  | ||||
| @ -162,7 +162,9 @@ class StrategyConfigure extends React.Component { | ||||
|             item = ( | ||||
|                 <Card shadow={0} className={styles.card} style={{ opacity: isDragging ? '0.1' : '1' }}> | ||||
|                     <CardTitle className={styles.cardTitle}> | ||||
|                         <Icon name="extension" /> {name} | ||||
|                         <Icon name="extension" /> | ||||
|                           | ||||
|                         {name} | ||||
|                     </CardTitle> | ||||
|                     <CardText>{this.props.strategyDefinition.description}</CardText> | ||||
|                     {inputFields && ( | ||||
|  | ||||
| @ -106,7 +106,8 @@ class UpdateVariantComponent extends Component { | ||||
|                     supports variants. You should read more about variants in the  | ||||
|                     <a target="_blank" href="https://unleash.github.io/docs/beta_features"> | ||||
|                         user documentation | ||||
|                     </a>. | ||||
|                     </a> | ||||
|                     . | ||||
|                 </p> | ||||
|                 <p style={{ backgroundColor: 'rgba(255, 229, 100, 0.3)', padding: '5px' }}> | ||||
|                     The sum of variants weights needs to be a constant number to guarantee consistent hashing in the | ||||
|  | ||||
| @ -9,9 +9,6 @@ const mapStateToProps = state => { | ||||
|     }; | ||||
| }; | ||||
| 
 | ||||
| const HistoryListContainer = connect( | ||||
|     mapStateToProps, | ||||
|     { fetchHistory } | ||||
| )(HistoryComponent); | ||||
| const HistoryListContainer = connect(mapStateToProps, { fetchHistory })(HistoryComponent); | ||||
| 
 | ||||
| export default HistoryListContainer; | ||||
|  | ||||
| @ -49,7 +49,4 @@ class HeaderComponent extends PureComponent { | ||||
|     } | ||||
| } | ||||
| 
 | ||||
| export default connect( | ||||
|     state => ({ uiConfig: state.uiConfig.toJS() }), | ||||
|     { fetchUIConfig } | ||||
| )(HeaderComponent); | ||||
| export default connect(state => ({ uiConfig: state.uiConfig.toJS() }), { fetchUIConfig })(HeaderComponent); | ||||
|  | ||||
| @ -46,7 +46,8 @@ export default class ShowUserComponent extends React.Component { | ||||
|             <div className={styles.showUserSettings}> | ||||
|                 <div className={styles.showLocale}> | ||||
|                     <img src={imageLocale} title={locale} alt={locale} onClick={this.updateLocale.bind(this)} /> | ||||
|                 </div>  | ||||
|                 </div> | ||||
|                   | ||||
|                 <div className={styles.showUser}> | ||||
|                     <img src={imageUrl} title={email} alt={email} /> | ||||
|                 </div> | ||||
|  | ||||
| @ -13,7 +13,4 @@ const mapStateToProps = state => ({ | ||||
|     location: state.settings ? state.settings.toJS().location : {}, | ||||
| }); | ||||
| 
 | ||||
| export default connect( | ||||
|     mapStateToProps, | ||||
|     mapDispatchToProps | ||||
| )(ShowUserComponent); | ||||
| export default connect(mapStateToProps, mapDispatchToProps)(ShowUserComponent); | ||||
|  | ||||
| @ -1,4 +1,3 @@ | ||||
| import { AssertionError } from 'assert'; | ||||
| import reducer from '../index'; | ||||
| import { receiveConfig } from '../actions'; | ||||
| 
 | ||||
| @ -19,7 +18,6 @@ test('should be merged state all', () => { | ||||
| }); | ||||
| 
 | ||||
| test('should only update headerBackground', () => { | ||||
|     localStorage.clear(); | ||||
|     const uiConfig = { | ||||
|         headerBackground: 'black', | ||||
|     }; | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user