From ebaf19162937227c8cceaa994788d8b9bd23e00b Mon Sep 17 00:00:00 2001 From: Behzad Rabiei <53224485+Behzad-rabiei@users.noreply.github.com> Date: Mon, 29 Jan 2024 10:31:07 +0330 Subject: [PATCH] [CI]: fixed lint errors --- .eslintrc.json | 17 ++++++++++++++--- docker-compose.test.yml | 4 ++-- mongo-init.js | 2 +- 3 files changed, 17 insertions(+), 6 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 8bb20223..ab0df901 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -3,7 +3,10 @@ "es2021": true, "node": true }, - "extends": ["standard-with-typescript", "prettier"], + "extends": [ + "standard-with-typescript", + "prettier" + ], "overrides": [], "parser": "@typescript-eslint/parser", "parserOptions": { @@ -12,5 +15,13 @@ "project": "./tsconfig.json" }, "rules": {}, - "ignorePatterns": ["coverage", "dist", "__tests__/", "jest.config.js", "*.yml", "mongo-init.js", "bable.config.js"] -} + "ignorePatterns": [ + "coverage", + "dist", + "__tests__/", + "jest.config.js", + "*.yml", + "mongo-init.js", + "bable.config.js" + ] +} \ No newline at end of file diff --git a/docker-compose.test.yml b/docker-compose.test.yml index 744ccfb2..b2ed687e 100644 --- a/docker-compose.test.yml +++ b/docker-compose.test.yml @@ -10,8 +10,8 @@ services: - NODE_ENV=test - DB_HOST=mongo - DB_PORT=27017 - - DB_USER=root - - DB_PASSWORD=pass + - DB_USER=user + - DB_PASSWORD=password - DB_NAME=RnDAO - DISCORD_CLIENT_ID=1 - DISCORD_CLIENT_SECRET=1 diff --git a/mongo-init.js b/mongo-init.js index 10eed80b..c97377a6 100644 --- a/mongo-init.js +++ b/mongo-init.js @@ -1,4 +1,4 @@ print('Started Adding the Users.'); db = db.getSiblingDB('RnDAO'); -db.createUser({ user: 'root', pwd: 'pass', roles: ['readWrite'] }); +db.createUser({ user: 'user', pwd: 'password', roles: ['readWrite'] }); print('End Adding the User Roles.'); \ No newline at end of file