Skip to content

Commit

Permalink
chore: fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
harbassan committed Oct 1, 2024
1 parent 13218e2 commit e0ca916
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 14 deletions.
2 changes: 1 addition & 1 deletion backend/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
"no-unused-vars": "warn",
"func-names": "off",
"no-underscore-dangle": "off",
"import/extensions": "ignorePackages"
"import/extensions": "off"
}
}
10 changes: 0 additions & 10 deletions backend/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
2 changes: 2 additions & 0 deletions backend/src/routes/api/__tests__/imageApi.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down
1 change: 0 additions & 1 deletion backend/src/routes/api/__tests__/scenarioApi.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ function authHeaders(id) {

describe("Scenario API tests", () => {
const HTTP_OK = 200;
const HTTP_NO_CONTENT = 204;

let mongoServer;
let server;
Expand Down
1 change: 0 additions & 1 deletion backend/src/routes/api/__tests__/sceneApi.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ function authHeaders(id) {

describe("Scene API tests", () => {
const HTTP_OK = 200;
const HTTP_NO_CONTENT = 204;

let mongoServer;
let server;
Expand Down
1 change: 0 additions & 1 deletion backend/src/routes/api/scene.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e0ca916

Please sign in to comment.