-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Replace PhantomJS & Migrate eslint-config-edx (#1055)
* refactor: package upgrade for eslint migration * feat: replaced PhantomJs with Headless Chromium to fix unit tests after eslint upgrade * refactor: resolved eslint issues * fix: resolved linting issues * refactor: resolved eslint warnings * refactor: ignored lint error for global var edx * feat: updated version & added change summary to changelog Co-authored-by: BilalQamar <[email protected]>
- Loading branch information
1 parent
a4379ad
commit a06398e
Showing
35 changed files
with
11,932 additions
and
15,906 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"extends": "eslint-config-edx", | ||
"extends": "@edx/eslint-config", | ||
"env": { | ||
"worker": true | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 11 additions & 11 deletions
22
edx_proctoring/static/proctoring/js/collections/proctored_exam_allowance_collection.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
edx = edx || {}; | ||
(function(Backbone) { | ||
'use strict'; | ||
(Backbone => { | ||
'use strict'; | ||
|
||
edx.instructor_dashboard = edx.instructor_dashboard || {}; | ||
edx.instructor_dashboard.proctoring = edx.instructor_dashboard.proctoring || {}; | ||
edx.instructor_dashboard = edx.instructor_dashboard || {}; | ||
edx.instructor_dashboard.proctoring = edx.instructor_dashboard.proctoring || {}; | ||
|
||
edx.instructor_dashboard.proctoring.ProctoredExamAllowanceCollection = Backbone.Collection.extend({ | ||
/* model for a collection of ProctoredExamAllowance */ | ||
model: edx.instructor_dashboard.proctoring.ProctoredExamAllowanceModel, | ||
url: '/api/edx_proctoring/v1/proctored_exam/' | ||
}); | ||
this.edx.instructor_dashboard.proctoring.ProctoredExamAllowanceCollection = | ||
edx.instructor_dashboard.proctoring.ProctoredExamAllowanceCollection; | ||
edx.instructor_dashboard.proctoring.ProctoredExamAllowanceCollection = Backbone.Collection.extend({ | ||
/* model for a collection of ProctoredExamAllowance */ | ||
model: edx.instructor_dashboard.proctoring.ProctoredExamAllowanceModel, | ||
url: '/api/edx_proctoring/v1/proctored_exam/', | ||
}); | ||
const proctoredExamAllowanceCollection = edx.instructor_dashboard.proctoring.ProctoredExamAllowanceCollection; | ||
this.edx.instructor_dashboard.proctoring.ProctoredExamAllowanceCollection = proctoredExamAllowanceCollection; | ||
}).call(this, Backbone); |
22 changes: 11 additions & 11 deletions
22
edx_proctoring/static/proctoring/js/collections/proctored_exam_attempt_grouped_collection.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
edx = edx || {}; | ||
(function(Backbone) { | ||
'use strict'; | ||
(Backbone => { | ||
'use strict'; | ||
|
||
edx.instructor_dashboard = edx.instructor_dashboard || {}; | ||
edx.instructor_dashboard.proctoring = edx.instructor_dashboard.proctoring || {}; | ||
edx.instructor_dashboard = edx.instructor_dashboard || {}; | ||
edx.instructor_dashboard.proctoring = edx.instructor_dashboard.proctoring || {}; | ||
|
||
edx.instructor_dashboard.proctoring.ProctoredExamAttemptGroupedCollection = Backbone.Collection.extend({ | ||
/* model for a collection of ProctoredExamAttempt */ | ||
model: edx.instructor_dashboard.proctoring.ProctoredExamAttemptModel, | ||
url: '/api/edx_proctoring/v1/proctored_exam/attempt/grouped/course_id/' | ||
}); | ||
this.edx.instructor_dashboard.proctoring.ProctoredExamAttemptGroupedCollection = | ||
edx.instructor_dashboard.proctoring.ProctoredExamAttemptGroupedCollection; | ||
edx.instructor_dashboard.proctoring.ProctoredExamAttemptGroupedCollection = Backbone.Collection.extend({ | ||
/* model for a collection of ProctoredExamAttempt */ | ||
model: edx.instructor_dashboard.proctoring.ProctoredExamAttemptModel, | ||
url: '/api/edx_proctoring/v1/proctored_exam/attempt/grouped/course_id/', | ||
}); | ||
const groupedCollection = edx.instructor_dashboard.proctoring.ProctoredExamAttemptGroupedCollection; | ||
this.edx.instructor_dashboard.proctoring.ProctoredExamAttemptGroupedCollection = groupedCollection; | ||
}).call(this, Backbone); |
22 changes: 11 additions & 11 deletions
22
edx_proctoring/static/proctoring/js/collections/proctored_exam_collection.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
/* globals ProctoredExamModel:false */ | ||
edx = edx || {}; | ||
(function(Backbone) { | ||
'use strict'; | ||
(Backbone => { | ||
'use strict'; | ||
|
||
edx.instructor_dashboard = edx.instructor_dashboard || {}; | ||
edx.instructor_dashboard.proctoring = edx.instructor_dashboard.proctoring || {}; | ||
edx.instructor_dashboard = edx.instructor_dashboard || {}; | ||
edx.instructor_dashboard.proctoring = edx.instructor_dashboard.proctoring || {}; | ||
|
||
edx.instructor_dashboard.proctoring.ProctoredExamCollection = Backbone.Collection.extend({ | ||
/* model for a collection of ProctoredExamAllowance */ | ||
model: ProctoredExamModel, | ||
url: '/api/edx_proctoring/v1/proctored_exam/exam/course_id/' | ||
}); | ||
this.edx.instructor_dashboard.proctoring.ProctoredExamCollection = | ||
edx.instructor_dashboard.proctoring.ProctoredExamCollection; | ||
edx.instructor_dashboard.proctoring.ProctoredExamCollection = Backbone.Collection.extend({ | ||
/* model for a collection of ProctoredExamAllowance */ | ||
model: ProctoredExamModel, | ||
url: '/api/edx_proctoring/v1/proctored_exam/exam/course_id/', | ||
}); | ||
const proctoredExamCollection = edx.instructor_dashboard.proctoring.ProctoredExamCollection; | ||
this.edx.instructor_dashboard.proctoring.ProctoredExamCollection = proctoredExamCollection; | ||
}).call(this, Backbone); |
18 changes: 9 additions & 9 deletions
18
edx_proctoring/static/proctoring/js/collections/proctored_exam_onboarding_collection.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
edx = edx || {}; | ||
(function(Backbone) { | ||
'use strict'; | ||
(Backbone => { | ||
'use strict'; | ||
|
||
edx.instructor_dashboard = edx.instructor_dashboard || {}; | ||
edx.instructor_dashboard.proctoring = edx.instructor_dashboard.proctoring || {}; | ||
edx.instructor_dashboard = edx.instructor_dashboard || {}; | ||
edx.instructor_dashboard.proctoring = edx.instructor_dashboard.proctoring || {}; | ||
|
||
edx.instructor_dashboard.proctoring.ProctoredExamOnboardingCollection = Backbone.Collection.extend({ | ||
url: '/api/edx_proctoring/v1/user_onboarding/status/course_id/' | ||
}); | ||
this.edx.instructor_dashboard.proctoring.ProctoredExamOnboardingCollection = | ||
edx.instructor_dashboard.proctoring.ProctoredExamOnboardingCollection; | ||
edx.instructor_dashboard.proctoring.ProctoredExamOnboardingCollection = Backbone.Collection.extend({ | ||
url: '/api/edx_proctoring/v1/user_onboarding/status/course_id/', | ||
}); | ||
const proctoredExamOnboardingCollection = edx.instructor_dashboard.proctoring.ProctoredExamOnboardingCollection; | ||
this.edx.instructor_dashboard.proctoring.ProctoredExamOnboardingCollection = proctoredExamOnboardingCollection; | ||
}).call(this, Backbone); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.