From 330537d6d4f2e24e1f599a483d87195e1fe47bed Mon Sep 17 00:00:00 2001 From: MD Maruf Motaleb Date: Fri, 13 Oct 2023 11:33:10 +0100 Subject: [PATCH] wip: fixing lint errors refs: BLAIS5-3514 --- .eslintrc.json | 7 +++++++ server/tests/server.test.ts | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.eslintrc.json b/.eslintrc.json index 88c73a3..e088390 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -41,9 +41,16 @@ "error", "always" ], + "import/no-extraneous-dependencies": [ + "error", { + "devDependencies": true + } + ], "@typescript-eslint/no-explicit-any": "error", "react/react-in-jsx-scope": "off", "react/require-default-props": "off", + "no-spaced-func": "off", + "max-len": ["error", { "code": 180 }], "no-undef": "off" }, "overrides": [ diff --git a/server/tests/server.test.ts b/server/tests/server.test.ts index fac2232..05ef2c1 100644 --- a/server/tests/server.test.ts +++ b/server/tests/server.test.ts @@ -263,7 +263,8 @@ defineFeature(feature, test => { const selectedSurvey = response[0].questionnaires; expect(selectedSurvey).toHaveLength(1); - const questionnaireListReturned = [QuestionnaireHelper.Questionnaire(questionnaireName, true, "July 2020", "OPN", "https://external-web-url/OPN2007T?LayoutSet=CATI-Interviewer_Large")]; + const questionnaireListReturned = [QuestionnaireHelper.Questionnaire( + questionnaireName, true, "July 2020", "OPN", "https://external-web-url/OPN2007T?LayoutSet=CATI-Interviewer_Large")]; expect(selectedSurvey).toEqual(questionnaireListReturned); });