mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-20 21:54:25 -04:00
Fixed eslint errors and re-enabled build.sh check (#150)
* Fixed eslint errors and re-enabled build.sh check * Corrected typo * Corrected typo * Disabled max-params on files with warnings * Fixes for PR comments * Fixes for PR comments * Fixes for PR comments * Fixes for PR comments * Fixes for PR comments * Fixes for PR comments
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import PropTypes from 'prop-types';
|
||||
import React from 'react';
|
||||
import { inputTypes, sizes } from 'Helpers/Props';
|
||||
import { inputTypes } from 'Helpers/Props';
|
||||
import LoadingIndicator from 'Components/Loading/LoadingIndicator';
|
||||
import FieldSet from 'Components/FieldSet';
|
||||
import Form from 'Components/Form/Form';
|
||||
@@ -35,26 +35,26 @@ function MetadataProvider(props) {
|
||||
hasSettings && !isFetching && !error &&
|
||||
<Form>
|
||||
{
|
||||
advancedSettings &&
|
||||
<FieldSet
|
||||
legend="Metadata Provider Source"
|
||||
>
|
||||
<FormGroup
|
||||
advancedSettings={advancedSettings}
|
||||
isAdvanced={true}
|
||||
>
|
||||
<FormLabel>Metadata Source</FormLabel>
|
||||
advancedSettings &&
|
||||
<FieldSet
|
||||
legend="Metadata Provider Source"
|
||||
>
|
||||
<FormGroup
|
||||
advancedSettings={advancedSettings}
|
||||
isAdvanced={true}
|
||||
>
|
||||
<FormLabel>Metadata Source</FormLabel>
|
||||
|
||||
<FormInputGroup
|
||||
type={inputTypes.TEXT}
|
||||
name="metadataSource"
|
||||
helpText="Alternative Metadata Source (Leave blank for default)"
|
||||
helpLink="https://github.com/Lidarr/Lidarr/wiki/Metadata-Source"
|
||||
onChange={onInputChange}
|
||||
{...settings.metadataSource}
|
||||
/>
|
||||
</FormGroup>
|
||||
</FieldSet>
|
||||
<FormInputGroup
|
||||
type={inputTypes.TEXT}
|
||||
name="metadataSource"
|
||||
helpText="Alternative Metadata Source (Leave blank for default)"
|
||||
helpLink="https://github.com/Lidarr/Lidarr/wiki/Metadata-Source"
|
||||
onChange={onInputChange}
|
||||
{...settings.metadataSource}
|
||||
/>
|
||||
</FormGroup>
|
||||
</FieldSet>
|
||||
}
|
||||
</Form>
|
||||
}
|
||||
|
||||
@@ -75,4 +75,7 @@ DelayProfileDragPreview.propTypes = {
|
||||
})
|
||||
};
|
||||
|
||||
/* eslint-disable new-cap */
|
||||
export default DragLayer(collectDragLayer)(DelayProfileDragPreview);
|
||||
/* eslint-enable new-cap */
|
||||
|
||||
|
||||
@@ -137,6 +137,7 @@ DelayProfileDragSource.propTypes = {
|
||||
onDelayProfileDragEnd: PropTypes.func.isRequired
|
||||
};
|
||||
|
||||
/* eslint-disable new-cap */
|
||||
export default DropTarget(
|
||||
DELAY_PROFILE,
|
||||
delayProfileDropTarget,
|
||||
@@ -146,3 +147,4 @@ export default DropTarget(
|
||||
delayProfileDragSource,
|
||||
collectDragSource
|
||||
)(DelayProfileDragSource));
|
||||
/* eslint-enable new-cap */
|
||||
|
||||
@@ -85,4 +85,6 @@ LanguageProfileItemDragPreview.propTypes = {
|
||||
})
|
||||
};
|
||||
|
||||
/* eslint-disable new-cap */
|
||||
export default DragLayer(collectDragLayer)(LanguageProfileItemDragPreview);
|
||||
/* eslint-enable new-cap */
|
||||
|
||||
@@ -146,6 +146,7 @@ LanguageProfileItemDragSource.propTypes = {
|
||||
onLanguageProfileItemDragEnd: PropTypes.func.isRequired
|
||||
};
|
||||
|
||||
/* eslint-disable new-cap */
|
||||
export default DropTarget(
|
||||
QUALITY_PROFILE_ITEM,
|
||||
languageProfileItemDropTarget,
|
||||
@@ -155,3 +156,4 @@ export default DropTarget(
|
||||
languageProfileItemDragSource,
|
||||
collectDragSource
|
||||
)(LanguageProfileItemDragSource));
|
||||
/* eslint-enable new-cap */
|
||||
|
||||
@@ -34,5 +34,6 @@ class Profiles extends Component {
|
||||
|
||||
// Only a single DragDropContext can exist so it's done here to allow editing
|
||||
// quality profiles and reordering delay profiles to work.
|
||||
|
||||
/* eslint-disable new-cap */
|
||||
export default DragDropContext(HTML5Backend)(Profiles);
|
||||
/* eslint-enable new-cap */
|
||||
|
||||
@@ -89,4 +89,6 @@ QualityProfileItemDragPreview.propTypes = {
|
||||
})
|
||||
};
|
||||
|
||||
/* eslint-disable new-cap */
|
||||
export default DragLayer(collectDragLayer)(QualityProfileItemDragPreview);
|
||||
/* eslint-enable new-cap */
|
||||
|
||||
@@ -230,6 +230,7 @@ QualityProfileItemDragSource.propTypes = {
|
||||
onQualityProfileItemDragEnd: PropTypes.func.isRequired
|
||||
};
|
||||
|
||||
/* eslint-disable new-cap */
|
||||
export default DropTarget(
|
||||
QUALITY_PROFILE_ITEM,
|
||||
qualityProfileItemDropTarget,
|
||||
@@ -239,3 +240,5 @@ export default DropTarget(
|
||||
qualityProfileItemDragSource,
|
||||
collectDragSource
|
||||
)(QualityProfileItemDragSource));
|
||||
/* eslint-enable new-cap */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user