Skip to content
Snippets Groups Projects
Unverified Commit 338fb8b6 authored by Chris Beer's avatar Chris Beer Committed by GitHub
Browse files

Allow some more PropTypes.object through eslint (#3542)

parent d8b1c600
Branches
Tags
3 merge requests!4Integrate upstream tests into gitlab ci,!3Update mirador code from official project,!2test gitlab ci (dont merge)
...@@ -30,6 +30,13 @@ ...@@ -30,6 +30,13 @@
}], }],
"react/jsx-props-no-spreading": "off", "react/jsx-props-no-spreading": "off",
"arrow-parens": "off", "arrow-parens": "off",
"import/no-anonymous-default-export": "off" "import/no-anonymous-default-export": "off",
"max-len": ["error", {
"code": 120,
"ignoreComments": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreRegExpLiterals": true
}]
} }
} }
...@@ -423,7 +423,7 @@ AnnotationsOverlay.defaultProps = { ...@@ -423,7 +423,7 @@ AnnotationsOverlay.defaultProps = {
}; };
AnnotationsOverlay.propTypes = { AnnotationsOverlay.propTypes = {
annotations: PropTypes.arrayOf(PropTypes.object), annotations: PropTypes.arrayOf(PropTypes.object), // eslint-disable-line react/forbid-prop-types
canvasWorld: PropTypes.instanceOf(CanvasWorld).isRequired, canvasWorld: PropTypes.instanceOf(CanvasWorld).isRequired,
deselectAnnotation: PropTypes.func, deselectAnnotation: PropTypes.func,
drawAnnotations: PropTypes.bool, drawAnnotations: PropTypes.bool,
...@@ -432,7 +432,7 @@ AnnotationsOverlay.propTypes = { ...@@ -432,7 +432,7 @@ AnnotationsOverlay.propTypes = {
hoverAnnotation: PropTypes.func, hoverAnnotation: PropTypes.func,
hoveredAnnotationIds: PropTypes.arrayOf(PropTypes.string), hoveredAnnotationIds: PropTypes.arrayOf(PropTypes.string),
palette: PropTypes.object, // eslint-disable-line react/forbid-prop-types palette: PropTypes.object, // eslint-disable-line react/forbid-prop-types
searchAnnotations: PropTypes.arrayOf(PropTypes.object), searchAnnotations: PropTypes.arrayOf(PropTypes.object), // eslint-disable-line react/forbid-prop-types
selectAnnotation: PropTypes.func, selectAnnotation: PropTypes.func,
selectedAnnotationId: PropTypes.string, selectedAnnotationId: PropTypes.string,
viewer: PropTypes.object, // eslint-disable-line react/forbid-prop-types viewer: PropTypes.object, // eslint-disable-line react/forbid-prop-types
......
...@@ -32,8 +32,8 @@ export class AudioViewer extends Component { ...@@ -32,8 +32,8 @@ export class AudioViewer extends Component {
AudioViewer.propTypes = { AudioViewer.propTypes = {
audioOptions: PropTypes.object, // eslint-disable-line react/forbid-prop-types audioOptions: PropTypes.object, // eslint-disable-line react/forbid-prop-types
audioResources: PropTypes.arrayOf(PropTypes.object), audioResources: PropTypes.arrayOf(PropTypes.object), // eslint-disable-line react/forbid-prop-types
captions: PropTypes.arrayOf(PropTypes.object), captions: PropTypes.arrayOf(PropTypes.object), // eslint-disable-line react/forbid-prop-types
classes: PropTypes.objectOf(PropTypes.string).isRequired, classes: PropTypes.objectOf(PropTypes.string).isRequired,
}; };
......
...@@ -383,7 +383,7 @@ OpenSeadragonViewer.propTypes = { ...@@ -383,7 +383,7 @@ OpenSeadragonViewer.propTypes = {
children: PropTypes.node, children: PropTypes.node,
classes: PropTypes.objectOf(PropTypes.string).isRequired, classes: PropTypes.objectOf(PropTypes.string).isRequired,
drawAnnotations: PropTypes.bool, drawAnnotations: PropTypes.bool,
infoResponses: PropTypes.arrayOf(PropTypes.object), infoResponses: PropTypes.arrayOf(PropTypes.object), // eslint-disable-line react/forbid-prop-types
label: PropTypes.string, label: PropTypes.string,
nonTiledImages: PropTypes.array, // eslint-disable-line react/forbid-prop-types nonTiledImages: PropTypes.array, // eslint-disable-line react/forbid-prop-types
osdConfig: PropTypes.object, // eslint-disable-line react/forbid-prop-types osdConfig: PropTypes.object, // eslint-disable-line react/forbid-prop-types
......
...@@ -92,13 +92,13 @@ export class PrimaryWindow extends Component { ...@@ -92,13 +92,13 @@ export class PrimaryWindow extends Component {
} }
PrimaryWindow.propTypes = { PrimaryWindow.propTypes = {
audioResources: PropTypes.arrayOf(PropTypes.object), audioResources: PropTypes.arrayOf(PropTypes.object), // eslint-disable-line react/forbid-prop-types
children: PropTypes.node, children: PropTypes.node,
classes: PropTypes.objectOf(PropTypes.string).isRequired, classes: PropTypes.objectOf(PropTypes.string).isRequired,
isCollection: PropTypes.bool, isCollection: PropTypes.bool,
isCollectionDialogVisible: PropTypes.bool, isCollectionDialogVisible: PropTypes.bool,
isFetching: PropTypes.bool, isFetching: PropTypes.bool,
videoResources: PropTypes.arrayOf(PropTypes.object), videoResources: PropTypes.arrayOf(PropTypes.object), // eslint-disable-line react/forbid-prop-types
view: PropTypes.string, view: PropTypes.string,
windowId: PropTypes.string.isRequired, windowId: PropTypes.string.isRequired,
}; };
......
...@@ -84,7 +84,7 @@ SearchPanelNavigation.propTypes = { ...@@ -84,7 +84,7 @@ SearchPanelNavigation.propTypes = {
classes: PropTypes.objectOf(PropTypes.string), classes: PropTypes.objectOf(PropTypes.string),
direction: PropTypes.string.isRequired, direction: PropTypes.string.isRequired,
numTotal: PropTypes.number, numTotal: PropTypes.number,
searchHits: PropTypes.arrayOf(PropTypes.object), searchHits: PropTypes.arrayOf(PropTypes.object), // eslint-disable-line react/forbid-prop-types
searchService: PropTypes.shape({ searchService: PropTypes.shape({
id: PropTypes.string, id: PropTypes.string,
}).isRequired, }).isRequired,
......
...@@ -149,8 +149,8 @@ SearchResults.propTypes = { ...@@ -149,8 +149,8 @@ SearchResults.propTypes = {
isFetching: PropTypes.bool, isFetching: PropTypes.bool,
nextSearch: PropTypes.string, nextSearch: PropTypes.string,
query: PropTypes.string, query: PropTypes.string,
searchAnnotations: PropTypes.arrayOf(PropTypes.object), searchAnnotations: PropTypes.arrayOf(PropTypes.object), // eslint-disable-line react/forbid-prop-types
searchHits: PropTypes.arrayOf(PropTypes.object), searchHits: PropTypes.arrayOf(PropTypes.object), // eslint-disable-line react/forbid-prop-types
searchNumTotal: PropTypes.number, searchNumTotal: PropTypes.number,
t: PropTypes.func, t: PropTypes.func,
windowId: PropTypes.string.isRequired, // eslint-disable-line react/no-unused-prop-types windowId: PropTypes.string.isRequired, // eslint-disable-line react/no-unused-prop-types
......
...@@ -30,10 +30,10 @@ export class VideoViewer extends Component { ...@@ -30,10 +30,10 @@ export class VideoViewer extends Component {
} }
VideoViewer.propTypes = { VideoViewer.propTypes = {
captions: PropTypes.arrayOf(PropTypes.object), captions: PropTypes.arrayOf(PropTypes.object), // eslint-disable-line react/forbid-prop-types
classes: PropTypes.objectOf(PropTypes.string).isRequired, classes: PropTypes.objectOf(PropTypes.string).isRequired,
videoOptions: PropTypes.object, // eslint-disable-line react/forbid-prop-types videoOptions: PropTypes.object, // eslint-disable-line react/forbid-prop-types
videoResources: PropTypes.arrayOf(PropTypes.object), videoResources: PropTypes.arrayOf(PropTypes.object), // eslint-disable-line react/forbid-prop-types
}; };
VideoViewer.defaultProps = { VideoViewer.defaultProps = {
......
...@@ -162,7 +162,7 @@ WindowSideBarCanvasPanel.propTypes = { ...@@ -162,7 +162,7 @@ WindowSideBarCanvasPanel.propTypes = {
collection: PropTypes.object, // eslint-disable-line react/forbid-prop-types collection: PropTypes.object, // eslint-disable-line react/forbid-prop-types
id: PropTypes.string.isRequired, id: PropTypes.string.isRequired,
sequenceId: PropTypes.string, sequenceId: PropTypes.string,
sequences: PropTypes.arrayOf(PropTypes.object), sequences: PropTypes.arrayOf(PropTypes.object), // eslint-disable-line react/forbid-prop-types
showMultipart: PropTypes.func.isRequired, showMultipart: PropTypes.func.isRequired,
showToc: PropTypes.bool, showToc: PropTypes.bool,
t: PropTypes.func.isRequired, t: PropTypes.func.isRequired,
......
...@@ -179,7 +179,10 @@ export class WorkspaceAdd extends React.Component { ...@@ -179,7 +179,10 @@ export class WorkspaceAdd extends React.Component {
WorkspaceAdd.propTypes = { WorkspaceAdd.propTypes = {
addResource: PropTypes.func, addResource: PropTypes.func,
catalog: PropTypes.arrayOf(PropTypes.object), catalog: PropTypes.arrayOf(PropTypes.shape({
manifestId: PropTypes.string.isRequired,
provider: PropTypes.string,
})),
classes: PropTypes.objectOf(PropTypes.string), classes: PropTypes.objectOf(PropTypes.string),
setWorkspaceAddVisibility: PropTypes.func.isRequired, setWorkspaceAddVisibility: PropTypes.func.isRequired,
t: PropTypes.func, t: PropTypes.func,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment