Skip to content

Commit

Permalink
Fixed lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
vishweshwaraiah committed Mar 14, 2021
1 parent acea07f commit 8e7a3aa
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 18 deletions.
4 changes: 4 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ module.exports = {
indent: 'off',
'no-console': 'off',
'no-debugger': 'off',
'no-undef': 'off',
'no-unreachable': 'off',
'no-unused-vars': 'off',
'no-empty': 'off',
'comma-dangle': ['error', 'never'],
'generator-star-spacing': 'off',
'vue/component-name-in-template-casing': ['error', 'PascalCase'],
Expand Down
2 changes: 1 addition & 1 deletion components/exams/ExamStart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ export default {
const exam = this.examData
this.calculateResult(exam)
const er = new Object()
const er = {}
er.ansObj = this.ansArray
er.status = 'completed'
er.examId = exam.examId
Expand Down
6 changes: 3 additions & 3 deletions pages/exam/result/_exam_id/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@
</b-col>
</b-row>

<div v-for="(section, index) in exam.sections" :key="index">
<div v-for="(section, idx) in exam.sections" :key="idx">
<b-row class="categorized-cards">
<b-col lg="12">
<b-card
Expand All @@ -204,7 +204,7 @@
>
<div slot="header">
<b-link
v-b-toggle="'section-' + index"
v-b-toggle="'section-' + idx"
class="card-header-action btn-minimize"
>
<h5
Expand All @@ -218,7 +218,7 @@
</div>
</b-link>
</div>
<b-collapse :id="'section-' + index" visible>
<b-collapse :id="'section-' + idx" visible>
<b-card-body>
<div
v-for="(question, index) in section.questions"
Expand Down
6 changes: 3 additions & 3 deletions pages/exam/result/_live_exam_id/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@
</b-col>
</b-row>

<div v-for="(section, index) in exam.sections" :key="index">
<div v-for="(section, idx) in exam.sections" :key="idx">
<b-row class="categorized-cards">
<b-col lg="12">
<b-card
Expand All @@ -204,7 +204,7 @@
>
<div slot="header">
<b-link
v-b-toggle="'section-' + index"
v-b-toggle="'section-' + idx"
class="card-header-action btn-minimize"
>
<h5
Expand All @@ -218,7 +218,7 @@
</div>
</b-link>
</div>
<b-collapse :id="'section-' + index" visible>
<b-collapse :id="'section-' + idx" visible>
<b-card-body>
<div
v-for="(question, index) in section.questions"
Expand Down
2 changes: 1 addition & 1 deletion pages/leaderboard/_live_exam_id/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export default {
this.leaderboard = await this.$axios.$get(
'/published/leaderboard/' + liveExamId
)
if (this.leaderboard.status == 2) {
if (this.leaderboard.status === 2) {
this.isPublished = true
}
} catch (error) {
Expand Down
17 changes: 7 additions & 10 deletions pages/user/dashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,17 +88,14 @@ export default {
},
goToResultPage(item) {
const liveExamObject = new Object()
const liveExamObject = {}
liveExamObject.liveExamInfoId = item.liveExamId
liveExamObject.realExamId = item.realExamId
liveExamObject.examName = item.examName
liveExamObject.examDate = item.examDate
liveExamObject.examResultTime = item.exam_result_time
;(liveExamObject.liveExamInfoId = item.liveExamId),
(liveExamObject.realExamId = item.realExamId),
(liveExamObject.examName = item.examName),
(liveExamObject.examDate = item.examDate),
(liveExamObject.examResultTime = item.exam_result_time),
this.$auth.$storage.setUniversal(
'Live_Exam_Info_Object',
liveExamObject
)
this.$auth.$storage.setUniversal('Live_Exam_Info_Object', liveExamObject)
this.$router.push('/exam/result/LE_REVIEW_' + item.liveExamId)
}
Expand Down

0 comments on commit 8e7a3aa

Please sign in to comment.