Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
sonsoleslp committed Aug 20, 2020
1 parent d676710 commit 46d3637
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
"no-native-reassign": 1,
"no-negated-condition": 0,
"no-negated-in-lhs": 1,
"no-nested-ternary": 1,
"no-nested-ternary": 0,
"no-new": 1,
"no-new-func": 1,
"no-new-object": 1,
Expand Down
1 change: 1 addition & 0 deletions controllers/turnos_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ exports.update = async (req, res, next) => {
req.escapeRoom.turnos = await models.turno.findAll({"where": {"escapeRoomId": req.escapeRoom.id}, "order": [["date", "ASC NULLS LAST"]]});
req.escapeRoom.turnos.forEach((t) => {
if (t.id === turn.id) {
// eslint-disable-next-line no-param-reassign
t = turn;
}
});
Expand Down
3 changes: 2 additions & 1 deletion io.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* eslint-disable global-require */

const socketio = require("socket.io");
const {checkAccess, getInfoFromSocket, socketAuthenticate, sendInitialInfo, initializeListeners } = require("./helpers/sockets");
const {getAuthMessageAndCode, NOT_A_PARTICIPANT, NOK} = require("./helpers/apiCodes");
Expand All @@ -14,7 +16,6 @@ exports.createServer = (server, sessionMiddleware) => {
try {
const user = await socketAuthenticate(socket);
const {escapeRoomId, lang, waiting, "turnId": teacherTurnId} = getInfoFromSocket(socket);
// eslint-disable-next-line global-require
let forceLanguage = "en";

if (lang && (lang === "es" || lang === "en")) {
Expand Down
1 change: 1 addition & 0 deletions test/routes.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* eslint-disable no-undef */
/* eslint-disable require-await */
const request = require("supertest");
const session = require("supertest-session");
const {execSync} = require("child_process");
Expand Down

0 comments on commit 46d3637

Please sign in to comment.