Skip to content

Commit 1105e18

Browse files
committed
ESLintの警告を解消
1 parent 68378eb commit 1105e18

13 files changed

Lines changed: 14 additions & 11 deletions

app/javascript/card.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ document.addEventListener('DOMContentLoaded', () => {
4343
}
4444

4545
// Create an instance of the card Element.
46-
const card = elements.create('card', { style: style, hidePostalCode: true })
46+
const card = elements.create('card', { style, hidePostalCode: true })
4747

4848
if (!userRole || checkedCreditCardCheckBox) {
4949
card.mount('#card-element')

app/javascript/controllers/report_template_controller.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export default class extends Controller {
1414
'templateContent',
1515
'previewContent'
1616
]
17+
1718
static values = {
1819
registeredTemplate: String,
1920
registeredTemplateId: Number,

app/javascript/initializeAnswer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export default function initializeAnswer(answer) {
172172
}
173173
const params = {
174174
id: answerId,
175-
answer: { description: description }
175+
answer: { description }
176176
}
177177
fetch(`/api/answers/${answerId}`, {
178178
method: 'PUT',

app/javascript/initializeComment.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ function updateComment(commentId, description) {
135135
}
136136
const params = {
137137
id: commentId,
138-
comment: { description: description }
138+
comment: { description }
139139
}
140140
fetch(`/api/comments/${commentId}`, {
141141
method: 'PUT',

app/javascript/micro-reports-edit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ document.addEventListener('DOMContentLoaded', () => {
102102
}
103103
const params = {
104104
id: microReportId,
105-
micro_report: { content: content }
105+
micro_report: { content }
106106
}
107107
const url = `/api/micro_reports/${microReportId}`
108108
return Bootcamp.patch(url, params).catch((error) => {

app/javascript/new-answer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ async function createAnswer(description, questionId) {
8181
const params = {
8282
question_id: questionId,
8383
answer: {
84-
description: description
84+
description
8585
}
8686
}
8787
try {

app/javascript/practice_memo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ document.addEventListener('DOMContentLoaded', () => {
9999
function updateMemo(memo, practiceId) {
100100
const params = {
101101
practice: {
102-
memo: memo
102+
memo
103103
}
104104
}
105105
fetch(`/api/practices/${practiceId}`, {

app/javascript/product-checker.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ export class ProductChecker {
2222
} else {
2323
this.generateAssigneeDisplay()
2424
}
25+
event.currentTarget.children[0].className = 'fas fa-times'
26+
event.currentTarget.children[0].textContent = '担当から外れる'
2527
}
2628

2729
updateButton(button, isAssigned) {

app/javascript/reaction.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export function initializeReaction(reaction) {
3838

3939
function requestReaction(url, method, callback) {
4040
fetch(url, {
41-
method: method,
41+
method,
4242
credentials: 'same-origin',
4343
headers: {
4444
'X-Requested-With': 'XMLHttpRequest',

app/javascript/survey_result_chart.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ function initLinearScaleCharts() {
320320
}
321321
},
322322
annotation: {
323-
annotations: annotations
323+
annotations
324324
}
325325
}
326326
}

0 commit comments

Comments
 (0)