Skip to content

Commit 0c7aa27

Browse files
lint passing now
1 parent eb2a78d commit 0c7aa27

6 files changed

Lines changed: 12 additions & 2 deletions

File tree

src/chat/thread.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ module.exports = function thread (dom, kb, subject, messageStore, options) {
3838
// 'font-size: 100%; margin: 0.1em 1em 0.1em 1em; background-color: white; white-space: pre-wrap; padding: 0.1em;'
3939

4040
const div = dom.createElement('div')
41+
// eslint-disable-next-line prefer-const
4142
let messageTable // Shared by initial build and addMessageFromBindings
4243

4344
let me

src/media-capture.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ UI.media.cameraOLD = function (context, _gotBlob) {
239239
canvas.width = width
240240
canvas.height = height
241241

242+
// eslint-disable-next-line prefer-const
242243
ctx = canvas.getContext('2d')
243244
ctx.drawImage(video, 0, 0, width, height)
244245

src/messageArea.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ module.exports = function (dom, kb, subject, messageStore, options) {
3131
// 'font-size: 100%; margin: 0.1em 1em 0.1em 1em; background-color: white; white-space: pre-wrap; padding: 0.1em;'
3232

3333
const div = dom.createElement('div')
34+
// eslint-disable-next-line prefer-const
3435
let messageTable // Shared by initial build and addMessageFromBindings
3536

3637
let me

src/table.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,9 @@ module.exports = function renderTableViewPane (doc, options) {
803803
let subjects, types
804804

805805
const s = discoverTypes()
806+
// eslint-disable-next-line prefer-const
806807
subjects = s[0]
808+
// eslint-disable-next-line prefer-const
807809
types = s[1] // no [ ] on LHS
808810

809811
for (const typeUrl in subjects) {
@@ -1404,7 +1406,7 @@ module.exports = function renderTableViewPane (doc, options) {
14041406
} else if (obj.termType === 'Collection') {
14051407
const span = doc.createElement('span')
14061408
span.appendChild(doc.createTextNode('['))
1407-
obj.elements.map(function (x) {
1409+
obj.elements.forEach(function (x) {
14081410
span.appendChild(renderValue(x, column))
14091411
span.appendChild(doc.createTextNode(', '))
14101412
})

src/widgets/buttons.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1082,7 +1082,9 @@ export function selectorPanelRefresh (
10821082

10831083
const refreshItem = function (box: HTMLElement, x: NamedNode) {
10841084
// Scope to hold item and x
1085-
let item, image
1085+
let item: any
1086+
// eslint-disable-next-line prefer-const
1087+
let image: HTMLImageElement
10861088

10871089
const setStyle = function () {
10881090
const already = inverse
@@ -1096,6 +1098,7 @@ export function selectorPanelRefresh (
10961098
image.setAttribute('title', already.length ? already.length : 'attach')
10971099
}
10981100
const f = index.twoLine.widgetForClass(type)
1101+
// eslint-disable-next-line prefer-const
10991102
item = f(dom, x)
11001103
item.setAttribute('style', style0)
11011104

src/widgets/forms.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1527,6 +1527,7 @@ forms.makeSelectForNestedCategory = function (
15271527
if (ok) update()
15281528
callbackFunction(ok, body)
15291529
}
1530+
// eslint-disable-next-line prefer-const
15301531
select = forms.makeSelectForCategory(
15311532
dom,
15321533
kb,
@@ -1580,6 +1581,7 @@ function buildCheckboxForm (dom, kb, lab, del, ins, form, store, tristate) {
15801581
'colour: black; font-size: 100%; padding-left: 0.5 em; padding-right: 0.5 em;'
15811582
box.appendChild(tx)
15821583
let input
1584+
// eslint-disable-next-line prefer-const
15831585
input = dom.createElement('button')
15841586

15851587
input.setAttribute(

0 commit comments

Comments
 (0)