From db6cacbd5c7b8ac783032b651a743afc38c834de Mon Sep 17 00:00:00 2001 From: Maximilian Franzke Date: Sun, 5 Jan 2025 09:58:44 +0100 Subject: [PATCH 1/3] 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 e7228c931b6f6b8ec4f77fe18fb0d92ce734fcc9 Mon Sep 17 00:00:00 2001 From: Maximilian Franzke Date: Sun, 5 Jan 2025 10:11:06 +0100 Subject: [PATCH 2/3] 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 () { From 4f36b05a3f3b0c01c1064df6975ae8bc14cabf49 Mon Sep 17 00:00:00 2001 From: Maximilian Franzke Date: Sun, 5 Jan 2025 10:40:04 +0100 Subject: [PATCH 3/3] Revert "refactor: use a stable and simple format" This reverts commit db6cacbd5c7b8ac783032b651a743afc38c834de. --- .config/.lintstagedrc-prettier.js | 3 +++ .config/.lintstagedrc-prettier.json | 1 - .husky/pre-commit | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 .config/.lintstagedrc-prettier.js delete mode 100644 .config/.lintstagedrc-prettier.json diff --git a/.config/.lintstagedrc-prettier.js b/.config/.lintstagedrc-prettier.js new file mode 100644 index 000000000..655bfb578 --- /dev/null +++ b/.config/.lintstagedrc-prettier.js @@ -0,0 +1,3 @@ +export default { + '**/*': 'prettier --write --ignore-unknown' +}; diff --git a/.config/.lintstagedrc-prettier.json b/.config/.lintstagedrc-prettier.json deleted file mode 100644 index 23bbc4320..000000000 --- a/.config/.lintstagedrc-prettier.json +++ /dev/null @@ -1 +0,0 @@ -{ "**/*": "prettier --write --ignore-unknown" } diff --git a/.husky/pre-commit b/.husky/pre-commit index 91037c047..1fc12e794 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.json +lint-staged --config .config/.lintstagedrc-prettier.js git update-index --again