diff --git a/backend/.eslintrc.json b/backend/.eslintrc.json index 544c5ae2..dd0ec7e0 100644 --- a/backend/.eslintrc.json +++ b/backend/.eslintrc.json @@ -28,6 +28,6 @@ "no-unused-vars": "warn", "func-names": "off", "no-underscore-dangle": "off", - "import/extensions": "ignorePackages" + "import/extensions": "off" } } diff --git a/backend/src/index.js b/backend/src/index.js index cde357ff..0f1ad0db 100644 --- a/backend/src/index.js +++ b/backend/src/index.js @@ -32,13 +32,3 @@ connectToDatabase().then(function () { // eslint-disable-next-line no-console app.listen(port, () => console.log(`App server listening on port ${port}!`)); }); - -const bag = { - weight: 10, - color: "red", - brand: "Nike", -}; - -console.log(bag?.weight); -console.log(bag?.price?.cents); -console.log(bag?.brand); diff --git a/backend/src/routes/api/__tests__/imageApi.test.js b/backend/src/routes/api/__tests__/imageApi.test.js index 56c56199..786968e8 100644 --- a/backend/src/routes/api/__tests__/imageApi.test.js +++ b/backend/src/routes/api/__tests__/imageApi.test.js @@ -69,10 +69,12 @@ describe("Image API tests", () => { "https://drive.google.com/uc?export=view&id=1uRyrBAvCZf2dPHXR0TjsPVncU_rz0vuZ", ]; + // eslint-disable-next-line no-restricted-syntax for (const url of urls) { const dbImage = new Image({ url, }); + // eslint-disable-next-line no-await-in-loop await dbImage.save(); } diff --git a/backend/src/routes/api/__tests__/scenarioApi.test.js b/backend/src/routes/api/__tests__/scenarioApi.test.js index 40642da2..907db531 100644 --- a/backend/src/routes/api/__tests__/scenarioApi.test.js +++ b/backend/src/routes/api/__tests__/scenarioApi.test.js @@ -33,7 +33,6 @@ function authHeaders(id) { describe("Scenario API tests", () => { const HTTP_OK = 200; - const HTTP_NO_CONTENT = 204; let mongoServer; let server; diff --git a/backend/src/routes/api/__tests__/sceneApi.test.js b/backend/src/routes/api/__tests__/sceneApi.test.js index 5357d9d7..28f6b319 100644 --- a/backend/src/routes/api/__tests__/sceneApi.test.js +++ b/backend/src/routes/api/__tests__/sceneApi.test.js @@ -33,7 +33,6 @@ function authHeaders(id) { describe("Scene API tests", () => { const HTTP_OK = 200; - const HTTP_NO_CONTENT = 204; let mongoServer; let server; diff --git a/backend/src/routes/api/scene.js b/backend/src/routes/api/scene.js index c367eae6..85e5f0f1 100644 --- a/backend/src/routes/api/scene.js +++ b/backend/src/routes/api/scene.js @@ -15,7 +15,6 @@ import scenarioAuth from "../../middleware/scenarioAuth.js"; const router = Router({ mergeParams: true }); const HTTP_OK = 200; -const HTTP_NO_CONTENT = 204; const HTTP_NOT_FOUND = 404; // Apply auth middleware to all routes below this point