From bb4c700bf4e213f52359d177d1d28bf0858df413 Mon Sep 17 00:00:00 2001 From: Maximilian Franzke Date: Sun, 5 Jan 2025 09:58:44 +0100 Subject: [PATCH 1/2] refactor: use a stable and simple format --- .config/.lintstagedrc-prettier.js | 3 --- .config/.lintstagedrc-prettier.json | 1 + .husky/pre-commit | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) delete mode 100644 .config/.lintstagedrc-prettier.js create mode 100644 .config/.lintstagedrc-prettier.json diff --git a/.config/.lintstagedrc-prettier.js b/.config/.lintstagedrc-prettier.js deleted file mode 100644 index 655bfb578..000000000 --- a/.config/.lintstagedrc-prettier.js +++ /dev/null @@ -1,3 +0,0 @@ -export default { - '**/*': 'prettier --write --ignore-unknown' -}; diff --git a/.config/.lintstagedrc-prettier.json b/.config/.lintstagedrc-prettier.json new file mode 100644 index 000000000..23bbc4320 --- /dev/null +++ b/.config/.lintstagedrc-prettier.json @@ -0,0 +1 @@ +{ "**/*": "prettier --write --ignore-unknown" } diff --git a/.husky/pre-commit b/.husky/pre-commit index 1fc12e794..91037c047 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -2,5 +2,5 @@ echo "### npm run general lintings ###" concurrently "node ./scripts/check-commit-mail.js" "node ./scripts/cypress/component-check.js" "node ./scripts/angular-module-component-check.js" "npx validate-branch-name" echo "### lint staged files ###" lint-staged -lint-staged --config .config/.lintstagedrc-prettier.js +lint-staged --config .config/.lintstagedrc-prettier.json git update-index --again From 0793276b80e0e22b970ec71ddc4c968de99e167f Mon Sep 17 00:00:00 2001 From: Maximilian Franzke Date: Sun, 5 Jan 2025 10:11:06 +0100 Subject: [PATCH 2/2] test: fix by adapting the year --- e2e/cypress/e2e/02-0-navigation/db-footer.cy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e2e/cypress/e2e/02-0-navigation/db-footer.cy.js b/e2e/cypress/e2e/02-0-navigation/db-footer.cy.js index 13bbb6670..00f7832cd 100644 --- a/e2e/cypress/e2e/02-0-navigation/db-footer.cy.js +++ b/e2e/cypress/e2e/02-0-navigation/db-footer.cy.js @@ -11,7 +11,7 @@ context('db-footer', () => { it('Standard footer exists', function () { cy.get(selector).eq(0).should('have.class', 'has-border'); cy.get(selector).eq(0); - cy.get(`${selector} > span`).contains('Copyright 2024 DB Systel'); + cy.get(`${selector} > span`).contains('Copyright 2025 DB Systel'); }); it('Custom footer exists', function () {