From d19edc4d890adf02cae91ed6fc61de8b24fbe5d7 Mon Sep 17 00:00:00 2001 From: jeffreywescott Date: Wed, 15 Feb 2017 19:35:54 -0800 Subject: [PATCH] fix lint errors We had to choose between disabling react/prop-types or react/no-unused-prop-types. Since react/no-unused-prop-types has a bug (see https://github.com/yannickcr/eslint-plugin-react/issues/811), we're disabling it for now. --- common/containers/ChapterForm/index.jsx | 1 + common/containers/ChapterList/index.jsx | 1 + common/containers/ProjectDetail/index.jsx | 1 + common/containers/ProjectForm/index.jsx | 1 + common/containers/ProjectList/index.jsx | 1 + common/containers/RetroSurvey/index.jsx | 1 + common/containers/UserDetail/index.jsx | 2 ++ common/containers/UserList/index.jsx | 1 + package.json | 1 + 9 files changed, 10 insertions(+) diff --git a/common/containers/ChapterForm/index.jsx b/common/containers/ChapterForm/index.jsx index e8d9a163..54f8d8bb 100644 --- a/common/containers/ChapterForm/index.jsx +++ b/common/containers/ChapterForm/index.jsx @@ -34,6 +34,7 @@ class ChapterFormContainer extends Component { ChapterFormContainer.propTypes = { chapter: PropTypes.object, isBusy: PropTypes.bool.isRequired, + loading: PropTypes.bool.isRequired, fetchData: PropTypes.func.isRequired, showLoad: PropTypes.func.isRequired, hideLoad: PropTypes.func.isRequired, diff --git a/common/containers/ChapterList/index.jsx b/common/containers/ChapterList/index.jsx index ab2c8a67..ac91b551 100644 --- a/common/containers/ChapterList/index.jsx +++ b/common/containers/ChapterList/index.jsx @@ -55,6 +55,7 @@ class ChapterListContainer extends Component { ChapterListContainer.propTypes = { chapters: PropTypes.array.isRequired, isBusy: PropTypes.bool.isRequired, + loading: PropTypes.bool.isRequired, currentUser: PropTypes.object.isRequired, fetchData: PropTypes.func.isRequired, navigate: PropTypes.func.isRequired, diff --git a/common/containers/ProjectDetail/index.jsx b/common/containers/ProjectDetail/index.jsx index 83aab148..667e1121 100644 --- a/common/containers/ProjectDetail/index.jsx +++ b/common/containers/ProjectDetail/index.jsx @@ -50,6 +50,7 @@ ProjectDetailContainer.propTypes = { projectEvaluations: PropTypes.array, projectUserSummaries: PropTypes.array, isBusy: PropTypes.bool.isRequired, + loading: PropTypes.bool.isRequired, currentUser: PropTypes.object, fetchData: PropTypes.func.isRequired, navigate: PropTypes.func.isRequired, diff --git a/common/containers/ProjectForm/index.jsx b/common/containers/ProjectForm/index.jsx index 509faa5c..029dcac1 100644 --- a/common/containers/ProjectForm/index.jsx +++ b/common/containers/ProjectForm/index.jsx @@ -34,6 +34,7 @@ class ProjectFormContainer extends Component { ProjectFormContainer.propTypes = { project: PropTypes.object, isBusy: PropTypes.bool.isRequired, + loading: PropTypes.bool.isRequired, fetchData: PropTypes.func.isRequired, showLoad: PropTypes.func.isRequired, hideLoad: PropTypes.func.isRequired, diff --git a/common/containers/ProjectList/index.jsx b/common/containers/ProjectList/index.jsx index 8c75003b..5ed0e8f3 100644 --- a/common/containers/ProjectList/index.jsx +++ b/common/containers/ProjectList/index.jsx @@ -51,6 +51,7 @@ class ProjectListContainer extends Component { ProjectListContainer.propTypes = { projects: PropTypes.array.isRequired, isBusy: PropTypes.bool.isRequired, + loading: PropTypes.bool.isRequired, currentUser: PropTypes.object.isRequired, fetchData: PropTypes.func.isRequired, navigate: PropTypes.func.isRequired, diff --git a/common/containers/RetroSurvey/index.jsx b/common/containers/RetroSurvey/index.jsx index abe3358d..c23c20f6 100644 --- a/common/containers/RetroSurvey/index.jsx +++ b/common/containers/RetroSurvey/index.jsx @@ -261,6 +261,7 @@ class RetroSurveyContainer extends Component { RetroSurveyContainer.propTypes = { isBusy: PropTypes.bool.isRequired, + loading: PropTypes.bool.isRequired, currentUser: PropTypes.object, error: PropTypes.object, groupIndex: PropTypes.number, diff --git a/common/containers/UserDetail/index.jsx b/common/containers/UserDetail/index.jsx index 058cfe02..8fe281eb 100644 --- a/common/containers/UserDetail/index.jsx +++ b/common/containers/UserDetail/index.jsx @@ -45,6 +45,8 @@ class UserDetailContainer extends Component { UserDetailContainer.propTypes = { user: PropTypes.object, userProjectSummaries: PropTypes.array, + isBusy: PropTypes.bool.isRequired, + loading: PropTypes.bool.isRequired, fetchData: PropTypes.func.isRequired, navigate: PropTypes.func.isRequired, showLoad: PropTypes.func.isRequired, diff --git a/common/containers/UserList/index.jsx b/common/containers/UserList/index.jsx index 08c0c14e..7280eef5 100644 --- a/common/containers/UserList/index.jsx +++ b/common/containers/UserList/index.jsx @@ -44,6 +44,7 @@ class UserListContainer extends Component { UserListContainer.propTypes = { users: PropTypes.array.isRequired, isBusy: PropTypes.bool.isRequired, + loading: PropTypes.bool.isRequired, currentUser: PropTypes.object.isRequired, fetchData: PropTypes.func.isRequired, navigate: PropTypes.func.isRequired, diff --git a/package.json b/package.json index a5dfe2ec..48bd6b34 100644 --- a/package.json +++ b/package.json @@ -219,6 +219,7 @@ "single", "avoid-escape" ], + "react/no-unused-prop-types": 0, "react/forbid-component-props": 0, "react/jsx-indent": [ 2,