From 4f8fb90c9bbd493748eb0a0704ba549d5901f4e2 Mon Sep 17 00:00:00 2001 From: Yanick Minder Date: Tue, 24 Dec 2024 12:01:20 +0100 Subject: [PATCH] fix after rebase and apply formatter --- frontend/cypress/e2e/check-in.cy.ts | 8 ++++++-- frontend/eslint.config.mjs | 4 +--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/frontend/cypress/e2e/check-in.cy.ts b/frontend/cypress/e2e/check-in.cy.ts index 39016314dc..46080c59a6 100644 --- a/frontend/cypress/e2e/check-in.cy.ts +++ b/frontend/cypress/e2e/check-in.cy.ts @@ -310,8 +310,12 @@ function getCurrentDate() { let ddStr = '' + dd; let mmStr = '' + mm; - if (dd < 10) ddStr = '0' + ddStr; - if (mm < 10) mmStr = '0' + mmStr; + if (dd < 10) { + ddStr = '0' + ddStr; + } + if (mm < 10) { + mmStr = '0' + mmStr; + } return ddStr + '.' + mmStr + '.' + yyyy; } diff --git a/frontend/eslint.config.mjs b/frontend/eslint.config.mjs index 45c129fa6f..b387c1d63f 100644 --- a/frontend/eslint.config.mjs +++ b/frontend/eslint.config.mjs @@ -19,13 +19,11 @@ export default tsEslint.config( ...tsEslint.configs.stylistic, ...angular.configs.tsRecommended, ], + processor: angular.processInlineTemplates, languageOptions: { parserOptions: { project: ['./tsconfig.json', './tsconfig.spec.json'], }, - }, - processor: angular.processInlineTemplates, - languageOptions: { globals: { //Cypress things not recognized by eslint cy: 'readonly',