style: fix eslint warnings

This commit is contained in:
Gergő Jedlicska
2022-04-04 22:32:34 +02:00
parent ae84dbc5d6
commit 89d0d9e0ed
13 changed files with 16 additions and 9 deletions
@@ -9,6 +9,7 @@ async function main() {
const [filePath, userId, streamId, branchName, commitMessage] = cmdArgs
// eslint-disable-next-line no-console
console.log('ARGV: ', filePath, userId, streamId, branchName, commitMessage)
const data = fs.readFileSync(filePath)
+1
View File
@@ -56,6 +56,7 @@ async function parseAndCreateCommit({
})
const json = await response.json()
// eslint-disable-next-line no-console
console.log(json)
return json.data.commitCreate
@@ -1,3 +1,5 @@
/* eslint-disable no-console */
/* eslint-disable camelcase */
const WebIFC = require('web-ifc/web-ifc-api-node')
const ServerAPI = require('./api.js')
@@ -1,3 +1,4 @@
/* eslint-disable no-console */
'use strict'
const knex = require('../knex')
+1
View File
@@ -407,6 +407,7 @@ export default class ObjectLoader {
// Wait for data on any running request
const data = await Promise.any(validReadPromises)
// eslint-disable-next-line prefer-const
let { value: crtDataChunk, done: readerDone, reqId } = data
finishedRequests[reqId] = readerDone
+1
View File
@@ -1,3 +1,4 @@
/* eslint-disable camelcase */
const Matomo = require('matomo-tracker')
const { machineIdSync } = require('node-machine-id')
@@ -33,6 +33,7 @@ module.exports = {
userId,
activityMessage: message,
event: {
// eslint-disable-next-line camelcase
event_name: actionType,
data: info
}
@@ -66,8 +66,7 @@ module.exports = async (app, session, sessionStorage, finalizeAuth) => {
if (req.session.suuid) user.suuid = req.session.suuid
let existingUser
existingUser = await getUserByEmail({ email: user.email })
const existingUser = await getUserByEmail({ email: user.email })
// if there is an existing user, go ahead and log them in (regardless of
// whether the server is invite only or not).
@@ -46,8 +46,7 @@ module.exports = async (app, session, sessionStorage, finalizeAuth) => {
if (req.session.suuid) user.suuid = req.session.suuid
let existingUser
existingUser = await getUserByEmail({ email: user.email })
const existingUser = await getUserByEmail({ email: user.email })
// if there is an existing user, go ahead and log them in (regardless of
// whether the server is invite only or not).
@@ -43,8 +43,7 @@ module.exports = async (app, session, sessionStorage, finalizeAuth) => {
if (req.session.suuid) user.suuid = req.session.suuid
let existingUser
existingUser = await getUserByEmail({ email: user.email })
const existingUser = await getUserByEmail({ email: user.email })
// if there is an existing user, go ahead and log them in (regardless of
// whether the server is invite only or not).
@@ -1,3 +1,4 @@
/* eslint-disable camelcase */
/* istanbul ignore file */
const chai = require('chai')
const appRoot = require('app-root-path')
@@ -1,4 +1,5 @@
/* istanbul ignore file */
/* eslint-disable camelcase */
const expect = require('chai').expect
const assert = require('assert')
@@ -66,9 +66,9 @@ module.exports = {
process.env.CANONICAL_URL
)
let emailText, emailHtml, subject
let subject
emailText = `
const emailText = `
Hello!
${inviter.name} has just sent you this invitation to join the ${
@@ -90,7 +90,7 @@ This email was sent from ${serverInfo.name} at ${
}.
`
emailHtml = `
const emailHtml = `
Hello!
<br>
<br>