Skip to content

Commit cd0239b

Browse files
author
jeffreywescott
committed
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 jsx-eslint/eslint-plugin-react#811), we're disabling it for now.
1 parent 73b0ec6 commit cd0239b

File tree

9 files changed

+10
-0
lines changed

9 files changed

+10
-0
lines changed

common/containers/ChapterForm/index.jsx

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class ChapterFormContainer extends Component {
3434
ChapterFormContainer.propTypes = {
3535
chapter: PropTypes.object,
3636
isBusy: PropTypes.bool.isRequired,
37+
loading: PropTypes.bool.isRequired,
3738
fetchData: PropTypes.func.isRequired,
3839
showLoad: PropTypes.func.isRequired,
3940
hideLoad: PropTypes.func.isRequired,

common/containers/ChapterList/index.jsx

+1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ class ChapterListContainer extends Component {
5555
ChapterListContainer.propTypes = {
5656
chapters: PropTypes.array.isRequired,
5757
isBusy: PropTypes.bool.isRequired,
58+
loading: PropTypes.bool.isRequired,
5859
currentUser: PropTypes.object.isRequired,
5960
fetchData: PropTypes.func.isRequired,
6061
navigate: PropTypes.func.isRequired,

common/containers/ProjectDetail/index.jsx

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ ProjectDetailContainer.propTypes = {
5050
projectEvaluations: PropTypes.array,
5151
projectUserSummaries: PropTypes.array,
5252
isBusy: PropTypes.bool.isRequired,
53+
loading: PropTypes.bool.isRequired,
5354
currentUser: PropTypes.object,
5455
fetchData: PropTypes.func.isRequired,
5556
navigate: PropTypes.func.isRequired,

common/containers/ProjectForm/index.jsx

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class ProjectFormContainer extends Component {
3434
ProjectFormContainer.propTypes = {
3535
project: PropTypes.object,
3636
isBusy: PropTypes.bool.isRequired,
37+
loading: PropTypes.bool.isRequired,
3738
fetchData: PropTypes.func.isRequired,
3839
showLoad: PropTypes.func.isRequired,
3940
hideLoad: PropTypes.func.isRequired,

common/containers/ProjectList/index.jsx

+1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ class ProjectListContainer extends Component {
5151
ProjectListContainer.propTypes = {
5252
projects: PropTypes.array.isRequired,
5353
isBusy: PropTypes.bool.isRequired,
54+
loading: PropTypes.bool.isRequired,
5455
currentUser: PropTypes.object.isRequired,
5556
fetchData: PropTypes.func.isRequired,
5657
navigate: PropTypes.func.isRequired,

common/containers/RetroSurvey/index.jsx

+1
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ class RetroSurveyContainer extends Component {
261261

262262
RetroSurveyContainer.propTypes = {
263263
isBusy: PropTypes.bool.isRequired,
264+
loading: PropTypes.bool.isRequired,
264265
currentUser: PropTypes.object,
265266
error: PropTypes.object,
266267
groupIndex: PropTypes.number,

common/containers/UserDetail/index.jsx

+2
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ class UserDetailContainer extends Component {
4545
UserDetailContainer.propTypes = {
4646
user: PropTypes.object,
4747
userProjectSummaries: PropTypes.array,
48+
isBusy: PropTypes.bool.isRequired,
49+
loading: PropTypes.bool.isRequired,
4850
fetchData: PropTypes.func.isRequired,
4951
navigate: PropTypes.func.isRequired,
5052
showLoad: PropTypes.func.isRequired,

common/containers/UserList/index.jsx

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ class UserListContainer extends Component {
4444
UserListContainer.propTypes = {
4545
users: PropTypes.array.isRequired,
4646
isBusy: PropTypes.bool.isRequired,
47+
loading: PropTypes.bool.isRequired,
4748
currentUser: PropTypes.object.isRequired,
4849
fetchData: PropTypes.func.isRequired,
4950
navigate: PropTypes.func.isRequired,

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@
219219
"single",
220220
"avoid-escape"
221221
],
222+
"react/no-unused-prop-types": 0,
222223
"react/forbid-component-props": 0,
223224
"react/jsx-indent": [
224225
2,

0 commit comments

Comments
 (0)