Merge pull request #4786 from paulkaplan/update-eslint-react
Update eslint-plugin-react and fix newly discovered lint errors.
This commit is contained in:
8 files changed
+19
-4
No files matched your search
+1
-1
@@ -56,7 +56,7 @@
|
||||
"eslint": "^5.0.1",
|
||||
"eslint-config-scratch": "^5.0.0",
|
||||
"eslint-plugin-import": "^2.8.0",
|
||||
"eslint-plugin-react": "7.11.1",
|
||||
"eslint-plugin-react": "^7.12.4",
|
||||
"file-loader": "2.0.0",
|
||||
"get-float-time-domain-data": "0.1.0",
|
||||
"get-user-media-promise": "1.1.4",
|
||||
|
||||
@@ -715,6 +715,7 @@ MenuBar.propTypes = {
|
||||
isShowingProject: PropTypes.bool,
|
||||
isUpdating: PropTypes.bool,
|
||||
languageMenuOpen: PropTypes.bool,
|
||||
locale: PropTypes.string.isRequired,
|
||||
loginMenuOpen: PropTypes.bool,
|
||||
onClickAccount: PropTypes.func,
|
||||
onClickEdit: PropTypes.func,
|
||||
@@ -744,6 +745,7 @@ MenuBar.propTypes = {
|
||||
sessionExists: PropTypes.bool,
|
||||
shouldSaveBeforeTransition: PropTypes.func,
|
||||
showComingSoon: PropTypes.bool,
|
||||
userOwnsProject: PropTypes.bool,
|
||||
username: PropTypes.string,
|
||||
vm: PropTypes.instanceOf(VM).isRequired
|
||||
};
|
||||
|
||||
@@ -423,6 +423,7 @@ class Stage extends React.Component {
|
||||
Stage.propTypes = {
|
||||
isColorPicking: PropTypes.bool,
|
||||
isFullScreen: PropTypes.bool.isRequired,
|
||||
isStarted: PropTypes.bool,
|
||||
micIndicator: PropTypes.bool,
|
||||
onActivateColorPicker: PropTypes.func,
|
||||
onDeactivateColorPicker: PropTypes.func,
|
||||
|
||||
@@ -113,7 +113,8 @@ const AppStateHOC = function (WrappedComponent, localesOnly) {
|
||||
}
|
||||
AppStateWrapper.propTypes = {
|
||||
isFullScreen: PropTypes.bool,
|
||||
isPlayerOnly: PropTypes.bool
|
||||
isPlayerOnly: PropTypes.bool,
|
||||
showTelemetryModal: PropTypes.bool
|
||||
};
|
||||
return AppStateWrapper;
|
||||
};
|
||||
|
||||
@@ -115,8 +115,10 @@ const ProjectFetcherHOC = function (WrappedComponent) {
|
||||
assetHost: PropTypes.string,
|
||||
canSave: PropTypes.bool,
|
||||
intl: intlShape.isRequired,
|
||||
isCreatingNew: PropTypes.bool,
|
||||
isFetchingWithId: PropTypes.bool,
|
||||
isLoadingProject: PropTypes.bool,
|
||||
isShowingProject: PropTypes.bool,
|
||||
loadingState: PropTypes.oneOf(LoadingStates),
|
||||
onActivateTab: PropTypes.func,
|
||||
onError: PropTypes.func,
|
||||
|
||||
@@ -343,6 +343,7 @@ const ProjectSaverHOC = function (WrappedComponent) {
|
||||
}
|
||||
|
||||
ProjectSaverComponent.propTypes = {
|
||||
autoSaveIntervalSecs: PropTypes.number.isRequired,
|
||||
autoSaveTimeoutId: PropTypes.number,
|
||||
canCreateNew: PropTypes.bool,
|
||||
canSave: PropTypes.bool,
|
||||
@@ -358,12 +359,16 @@ const ProjectSaverHOC = function (WrappedComponent) {
|
||||
isShowingWithoutId: PropTypes.bool,
|
||||
isUpdating: PropTypes.bool,
|
||||
loadingState: PropTypes.oneOf(LoadingStates),
|
||||
locale: PropTypes.string.isRequired,
|
||||
onAutoUpdateProject: PropTypes.func,
|
||||
onCreateProject: PropTypes.func,
|
||||
onCreatedProject: PropTypes.func,
|
||||
onProjectError: PropTypes.func,
|
||||
onProjectTelemetryEvent: PropTypes.func,
|
||||
onRemixing: PropTypes.func,
|
||||
onSetProjectSaver: PropTypes.func.isRequired,
|
||||
onSetProjectThumbnailer: PropTypes.func.isRequired,
|
||||
onSetProjectUnchanged: PropTypes.func.isRequired,
|
||||
onShowAlert: PropTypes.func,
|
||||
onShowCopySuccessAlert: PropTypes.func,
|
||||
onShowCreatingCopyAlert: PropTypes.func,
|
||||
@@ -377,6 +382,7 @@ const ProjectSaverHOC = function (WrappedComponent) {
|
||||
projectChanged: PropTypes.bool,
|
||||
reduxProjectId: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
||||
reduxProjectTitle: PropTypes.string,
|
||||
setAutoSaveTimeoutId: PropTypes.func.isRequired,
|
||||
vm: PropTypes.instanceOf(VM).isRequired
|
||||
};
|
||||
ProjectSaverComponent.defaultProps = {
|
||||
|
||||
@@ -60,9 +60,9 @@ const vmListenerHOC = function (WrappedComponent) {
|
||||
this.props.vm.postIOData('userData', {username: this.props.username});
|
||||
}
|
||||
|
||||
// Re-request a targets update when the shouldEmitTargetsUpdate state changes to true
|
||||
// Re-request a targets update when the shouldEmitUpdate state changes to true
|
||||
// i.e. when the editor transitions out of fullscreen/player only modes
|
||||
if (this.props.shouldEmitTargetsUpdate && !prevProps.shouldEmitTargetsUpdate) {
|
||||
if (this.props.shouldEmitUpdates && !prevProps.shouldEmitUpdates) {
|
||||
this.props.vm.emitTargetsUpdate(false /* Emit the event, but do not trigger project change */);
|
||||
}
|
||||
}
|
||||
@@ -148,8 +148,10 @@ const vmListenerHOC = function (WrappedComponent) {
|
||||
onKeyUp: PropTypes.func,
|
||||
onMicListeningUpdate: PropTypes.func.isRequired,
|
||||
onMonitorsUpdate: PropTypes.func.isRequired,
|
||||
onProjectChanged: PropTypes.func.isRequired,
|
||||
onProjectRunStart: PropTypes.func.isRequired,
|
||||
onProjectRunStop: PropTypes.func.isRequired,
|
||||
onProjectSaved: PropTypes.func.isRequired,
|
||||
onRuntimeStarted: PropTypes.func.isRequired,
|
||||
onShowExtensionAlert: PropTypes.func.isRequired,
|
||||
onTargetsUpdate: PropTypes.func.isRequired,
|
||||
|
||||
@@ -107,6 +107,7 @@ const vmManagerHOC = function (WrappedComponent) {
|
||||
fontsLoaded: PropTypes.bool,
|
||||
isLoadingWithId: PropTypes.bool,
|
||||
isPlayerOnly: PropTypes.bool,
|
||||
isStarted: PropTypes.bool,
|
||||
loadingState: PropTypes.oneOf(LoadingStates),
|
||||
locale: PropTypes.string,
|
||||
messages: PropTypes.objectOf(PropTypes.string),
|
||||
|
||||
Reference in new issue
Block a user