Skip to content

Commit

Permalink
chore: resolved lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
BilalQamar95 committed Sep 10, 2024
1 parent dbb10a3 commit 7607ea7
Show file tree
Hide file tree
Showing 19 changed files with 1,941 additions and 1,958 deletions.
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Ignore autogenerated JavaScript files to avoid false linting errors
openassessment/xblock/static/js/src/lms/oa_base.js
openassessment/xblock/static/js/src/lms/oa_staff_area.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,7 @@ const WaitingStepContent = ({
const oraDescriptionText = gettext(
'The "{name}" problem is configured to require a minimum of {min_grades} '
+ 'peer grades, and asks to review {min_graded} peers.',
).replace(
'{name}', waitingStepDetails.display_name,
).replace(
'{min_grades}', waitingStepDetails.must_be_graded_by,
).replace(
'{min_graded}', waitingStepDetails.must_grade,
);
).replace('{name}', waitingStepDetails.display_name).replace('{min_grades}', waitingStepDetails.must_be_graded_by).replace('{min_graded}', waitingStepDetails.must_grade);

const stuckLearnersText = gettext(
'There are currently {stuck_learners} learners in the waiting state, '
Expand Down Expand Up @@ -66,6 +60,7 @@ WaitingStepContent.propTypes = {
must_grade: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
waiting_count: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
overwritten_count: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
// eslint-disable-next-line react/forbid-prop-types
student_data: PropTypes.arrayOf(PropTypes.object),
}).isRequired,
refreshData: PropTypes.func,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable react/no-unstable-nested-components, react/forbid-prop-types */
import React from 'react';
import moment from 'moment';
import PropTypes from 'prop-types';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ const WaitingStepDetailsContainer = ({

// Fetch waiting step data from API
updateData();

// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);

return (
Expand Down
Loading

0 comments on commit 7607ea7

Please sign in to comment.