mirror of
https://github.com/Unleash/unleash.git
synced 2025-08-04 13:48:56 +02: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
|
before_script: greenkeeper-lockfile-update
|
||||||
script: yarn run test:ci
|
script: yarn run test:ci
|
||||||
after_script: greenkeeper-lockfile-upload
|
after_script: greenkeeper-lockfile-upload
|
||||||
|
cache:
|
||||||
|
yarn: true
|
||||||
env:
|
env:
|
||||||
global:
|
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=
|
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(),
|
uiConfig: state.uiConfig.toJS(),
|
||||||
});
|
});
|
||||||
|
|
||||||
export default connect(
|
export default connect(mapStateToProps, mapDispatchToProps)(ShowApiDetailsComponent);
|
||||||
mapStateToProps,
|
|
||||||
mapDispatchToProps
|
|
||||||
)(ShowApiDetailsComponent);
|
|
||||||
|
@ -69,12 +69,14 @@ DataTableHeader.propTypes = {
|
|||||||
export const FormButtons = ({ submitText = 'Create', onCancel }) => (
|
export const FormButtons = ({ submitText = 'Create', onCancel }) => (
|
||||||
<div>
|
<div>
|
||||||
<Button type="submit" ripple raised primary icon="add">
|
<Button type="submit" ripple raised primary icon="add">
|
||||||
<Icon name="add" />
|
<Icon name="add" />
|
||||||
|
|
||||||
{submitText}
|
{submitText}
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
<Button type="cancel" ripple raised onClick={onCancel} style={{ float: 'right' }}>
|
<Button type="cancel" ripple raised onClick={onCancel} style={{ float: 'right' }}>
|
||||||
<Icon name="cancel" /> Cancel
|
<Icon name="cancel" />
|
||||||
|
Cancel
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
@ -13,7 +13,8 @@ class ViewFeatureComponent extends Component {
|
|||||||
<StrategiesSection configuredStrategies={configuredStrategies} />
|
<StrategiesSection configuredStrategies={configuredStrategies} />
|
||||||
<br />
|
<br />
|
||||||
<Button type="cancel" ripple raised onClick={onCancel} style={{ float: 'right' }}>
|
<Button type="cancel" ripple raised onClick={onCancel} style={{ float: 'right' }}>
|
||||||
<Icon name="cancel" /> Cancel
|
<Icon name="cancel" />
|
||||||
|
Cancel
|
||||||
</Button>
|
</Button>
|
||||||
</section>
|
</section>
|
||||||
);
|
);
|
||||||
|
@ -162,7 +162,9 @@ class StrategyConfigure extends React.Component {
|
|||||||
item = (
|
item = (
|
||||||
<Card shadow={0} className={styles.card} style={{ opacity: isDragging ? '0.1' : '1' }}>
|
<Card shadow={0} className={styles.card} style={{ opacity: isDragging ? '0.1' : '1' }}>
|
||||||
<CardTitle className={styles.cardTitle}>
|
<CardTitle className={styles.cardTitle}>
|
||||||
<Icon name="extension" /> {name}
|
<Icon name="extension" />
|
||||||
|
|
||||||
|
{name}
|
||||||
</CardTitle>
|
</CardTitle>
|
||||||
<CardText>{this.props.strategyDefinition.description}</CardText>
|
<CardText>{this.props.strategyDefinition.description}</CardText>
|
||||||
{inputFields && (
|
{inputFields && (
|
||||||
|
@ -106,7 +106,8 @@ class UpdateVariantComponent extends Component {
|
|||||||
supports variants. You should read more about variants in the
|
supports variants. You should read more about variants in the
|
||||||
<a target="_blank" href="https://unleash.github.io/docs/beta_features">
|
<a target="_blank" href="https://unleash.github.io/docs/beta_features">
|
||||||
user documentation
|
user documentation
|
||||||
</a>.
|
</a>
|
||||||
|
.
|
||||||
</p>
|
</p>
|
||||||
<p style={{ backgroundColor: 'rgba(255, 229, 100, 0.3)', padding: '5px' }}>
|
<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
|
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(
|
const HistoryListContainer = connect(mapStateToProps, { fetchHistory })(HistoryComponent);
|
||||||
mapStateToProps,
|
|
||||||
{ fetchHistory }
|
|
||||||
)(HistoryComponent);
|
|
||||||
|
|
||||||
export default HistoryListContainer;
|
export default HistoryListContainer;
|
||||||
|
@ -49,7 +49,4 @@ class HeaderComponent extends PureComponent {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default connect(
|
export default connect(state => ({ uiConfig: state.uiConfig.toJS() }), { fetchUIConfig })(HeaderComponent);
|
||||||
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.showUserSettings}>
|
||||||
<div className={styles.showLocale}>
|
<div className={styles.showLocale}>
|
||||||
<img src={imageLocale} title={locale} alt={locale} onClick={this.updateLocale.bind(this)} />
|
<img src={imageLocale} title={locale} alt={locale} onClick={this.updateLocale.bind(this)} />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className={styles.showUser}>
|
<div className={styles.showUser}>
|
||||||
<img src={imageUrl} title={email} alt={email} />
|
<img src={imageUrl} title={email} alt={email} />
|
||||||
</div>
|
</div>
|
||||||
|
@ -13,7 +13,4 @@ const mapStateToProps = state => ({
|
|||||||
location: state.settings ? state.settings.toJS().location : {},
|
location: state.settings ? state.settings.toJS().location : {},
|
||||||
});
|
});
|
||||||
|
|
||||||
export default connect(
|
export default connect(mapStateToProps, mapDispatchToProps)(ShowUserComponent);
|
||||||
mapStateToProps,
|
|
||||||
mapDispatchToProps
|
|
||||||
)(ShowUserComponent);
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
import { AssertionError } from 'assert';
|
|
||||||
import reducer from '../index';
|
import reducer from '../index';
|
||||||
import { receiveConfig } from '../actions';
|
import { receiveConfig } from '../actions';
|
||||||
|
|
||||||
@ -19,7 +18,6 @@ test('should be merged state all', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
test('should only update headerBackground', () => {
|
test('should only update headerBackground', () => {
|
||||||
localStorage.clear();
|
|
||||||
const uiConfig = {
|
const uiConfig = {
|
||||||
headerBackground: 'black',
|
headerBackground: 'black',
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user