Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit 0068a56

Browse files
authored
Merge pull request #8 from SimonGolms/feature/dependencies
feature/dependencies
2 parents 77ff295 + ed461f6 commit 0068a56

File tree

17 files changed

+2410
-1612
lines changed

17 files changed

+2410
-1612
lines changed

.commitlintrc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/* eslint-disable import/no-unused-modules */
22
module.exports = {
3-
extends: ['@commitlint/config-conventional'],
3+
extends: ["@commitlint/config-conventional"],
44
// See: https://commitlint.js.org/#/reference-rules
55
rules: {
6-
'body-max-line-length': [0, 'always', Infinity], // Disabled rule, since the release notes via semantic-release in the commit body message can be appropriately long.
6+
"body-max-line-length": [0, "always", Infinity], // Disabled rule, since the release notes via semantic-release in the commit body message can be appropriately long.
77
},
88
};

.eslintrc.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ module.exports = {
9090
alphabetize: {
9191
caseInsensitive: true,
9292
order: "asc",
93+
orderImportKind: "asc",
9394
},
94-
groups: ["builtin", "external", "internal"],
9595
pathGroups: [
9696
{
9797
group: "external",
@@ -104,8 +104,10 @@ module.exports = {
104104
],
105105
"import/prefer-default-export": "off",
106106
"no-console": ["warn", { allow: ["warn", "error"] }],
107+
"playwright/prefer-to-be": "error",
108+
"playwright/prefer-to-have-length": "error",
109+
"playwright/require-top-level-describe": "error",
107110
"prettier/prettier": "error",
108-
"react/jsx-sort-default-props": "error",
109111
"react/jsx-sort-props": [
110112
"error",
111113
{
@@ -117,6 +119,7 @@ module.exports = {
117119
shorthandLast: false,
118120
},
119121
],
122+
"react/sort-default-props": "error",
120123
"react-hooks/exhaustive-deps": "error",
121124
"react-hooks/rules-of-hooks": "error",
122125
"sort-imports": [

.github/.releaserc.js

Lines changed: 34 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,74 @@
11
module.exports = {
2-
branches: ['main'],
2+
branches: ["main"],
33
plugins: [
44
[
5-
'@semantic-release/commit-analyzer',
5+
"@semantic-release/commit-analyzer",
66
{
77
parserOpts: {
8-
noteKeywords: ['BREAKING CHANGE', 'BREAKING CHANGES', 'BREAKING'],
8+
noteKeywords: ["BREAKING CHANGE", "BREAKING CHANGES", "BREAKING"],
99
},
10-
preset: 'angular',
10+
preset: "angular",
1111
releaseRules: [
12-
{ breaking: true, release: 'major' },
13-
{ release: 'patch', type: 'chore' },
14-
{ release: 'patch', type: 'ci' },
15-
{ release: 'patch', type: 'refactor' },
16-
{ release: 'patch', type: 'style' },
12+
{ breaking: true, release: "major" },
13+
{ release: "patch", type: "chore" },
14+
{ release: "patch", type: "ci" },
15+
{ release: "patch", type: "refactor" },
16+
{ release: "patch", type: "style" },
1717
],
1818
},
1919
],
2020
[
21-
'@semantic-release/release-notes-generator',
21+
"@semantic-release/release-notes-generator",
2222
{
2323
parserOpts: {
24-
noteKeywords: ['BREAKING CHANGE', 'BREAKING CHANGES', 'BREAKING'],
24+
noteKeywords: ["BREAKING CHANGE", "BREAKING CHANGES", "BREAKING"],
2525
},
26-
preset: 'conventionalcommits',
26+
preset: "conventionalcommits",
2727
presetConfig: {
2828
types: [
29-
{ hidden: false, section: 'Build System', type: 'build' },
30-
{ hidden: false, section: 'Build System', type: 'chore' },
31-
{ hidden: false, section: 'Continuous Integration', type: 'ci' },
32-
{ hidden: false, section: 'Documentation', type: 'docs' },
33-
{ hidden: false, section: 'Features', type: 'feat' },
34-
{ hidden: false, section: 'Bug Fixes', type: 'fix' },
29+
{ hidden: false, section: "Build System", type: "build" },
30+
{ hidden: false, section: "Build System", type: "chore" },
31+
{ hidden: false, section: "Continuous Integration", type: "ci" },
32+
{ hidden: false, section: "Documentation", type: "docs" },
33+
{ hidden: false, section: "Features", type: "feat" },
34+
{ hidden: false, section: "Bug Fixes", type: "fix" },
3535
{
3636
hidden: false,
37-
section: 'Performance Improvements',
38-
type: 'perf',
37+
section: "Performance Improvements",
38+
type: "perf",
3939
},
40-
{ hidden: false, section: 'Code Refactoring', type: 'refactor' },
41-
{ hidden: false, section: 'Styles', type: 'style' },
42-
{ hidden: false, section: 'Tests', type: 'test' },
40+
{ hidden: false, section: "Code Refactoring", type: "refactor" },
41+
{ hidden: false, section: "Styles", type: "style" },
42+
{ hidden: false, section: "Tests", type: "test" },
4343
],
4444
},
4545
writerOpts: {
46-
commitsSort: ['subject', 'scope'],
46+
commitsSort: ["subject", "scope"],
4747
},
4848
},
4949
],
5050
[
51-
'@semantic-release/exec',
51+
"@semantic-release/exec",
5252
{
5353
// HINT: Make sure that the changed files are part of the 'assets' property in @semantic-release/git
54-
verifyReleaseCmd: "sed -i 's/version-.*-blue/version-${nextRelease.version.replace(/-/g, '--')}-blue/g' README.md",
54+
verifyReleaseCmd:
55+
"sed -i 's/version-.*-blue/version-${nextRelease.version.replace(/-/g, '--')}-blue/g' README.md",
5556
},
5657
],
5758
[
58-
'@semantic-release/changelog',
59+
"@semantic-release/changelog",
5960
{
60-
changelogFile: 'CHANGELOG.md',
61-
changelogTitle: '# Changelog',
61+
changelogFile: "CHANGELOG.md",
62+
changelogTitle: "# Changelog",
6263
},
6364
],
6465
[
65-
'@semantic-release/git',
66+
"@semantic-release/git",
6667
{
67-
assets: ['CHANGELOG.md', 'README.md'],
68-
message: 'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}',
68+
assets: ["CHANGELOG.md", "README.md"],
69+
message: "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}",
6970
},
7071
],
71-
'@semantic-release/github',
72+
"@semantic-release/github",
7273
],
7374
};

.github/ISSUE_TEMPLATE/bug-report.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: 🐛 Bug Report
22
description: Create a report to help to improve the ODS Quickstarter
3-
title: 'bug: '
3+
title: "bug: "
44
body:
55
- type: checkboxes
66
attributes:

.github/ISSUE_TEMPLATE/feature-request.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: 💡 Feature Request
22
description: Suggest an idea for the ODS Quickstarter
3-
title: 'feat: '
3+
title: "feat: "
44
body:
55
- type: checkboxes
66
attributes:

.github/workflows/build-and-test.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@ name: Build and Test
22
on:
33
push:
44
branches-ignore:
5-
- 'main'
5+
- "main"
66

77
jobs:
88
build_and_test:
9-
name: 'Build and Test'
9+
name: "Build and Test"
1010
runs-on: ubuntu-20.04
1111
container:
1212
# Using the playwright container (https://mcr.microsoft.com/product/playwright/about)
1313
# for performance reasons to avoid having to download and install all dependencies again.
14-
image: mcr.microsoft.com/playwright:v1.27.1-focal
14+
image: mcr.microsoft.com/playwright:v1.29.2-focal
1515
# Container should run with the same user of the host VM, otherwise it leads to permission issues
1616
# see: https://github.com/actions/runner/issues/691 & https://github.com/actions/checkout/issues/211#issuecomment-680107607
1717
options: --user 1001
@@ -21,9 +21,9 @@ jobs:
2121
- name: Setup Node.js
2222
uses: actions/setup-node@v3
2323
with:
24-
node-version-file: '.nvmrc'
25-
cache: 'npm'
26-
cache-dependency-path: '**/package-lock.json'
24+
node-version-file: ".nvmrc"
25+
cache: "npm"
26+
cache-dependency-path: "**/package-lock.json"
2727
# Ignore README.md from find results to avoid unintentionally changes on the release step
2828
- name: Setup Quickstarter (Project ID)
2929
run: find . -type f \( ! -name "README.md" \) -exec sed -i 's/PROJECTID/foo/g' {} +
@@ -36,9 +36,9 @@ jobs:
3636
run: npm run lint
3737
- name: Test Components
3838
env:
39-
VITE_AZURE_ACTIVE_DIRECTORY_CLIENT_ID: '11111111-2222-3333-4444-555555555dev'
39+
VITE_AZURE_ACTIVE_DIRECTORY_CLIENT_ID: "11111111-2222-3333-4444-555555555dev"
4040
# IMPORTANT: A valid Azure AD Tenant ID for testing purposes is required.
41-
VITE_AZURE_ACTIVE_DIRECTORY_TENANT_ID: 'common'
41+
VITE_AZURE_ACTIVE_DIRECTORY_TENANT_ID: "common"
4242
run: npm run test
4343
- name: Build Application
4444
run: npm run build

.github/workflows/release.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ jobs:
1616
- name: Setup Node.js
1717
uses: actions/setup-node@v3
1818
with:
19-
node-version-file: '.nvmrc'
20-
cache: 'npm'
21-
cache-dependency-path: '**/package-lock.json'
19+
node-version-file: ".nvmrc"
20+
cache: "npm"
21+
cache-dependency-path: "**/package-lock.json"
2222
# Ignore README.md from find results to avoid unintentionally changes on the release step
2323
- name: Setup Quickstarter (Project ID)
2424
run: find . -type f \( ! -name "README.md" \) -exec sed -i 's/PROJECTID/foo/g' {} +
@@ -29,9 +29,9 @@ jobs:
2929
run: npm ci
3030
- name: Release
3131
env:
32-
GIT_AUTHOR_NAME: 'Simon Golms'
33-
GIT_AUTHOR_EMAIL: 'development@gol.ms'
34-
GIT_COMMITTER_NAME: 'Simon Golms'
35-
GIT_COMMITTER_EMAIL: 'development@gol.ms'
32+
GIT_AUTHOR_NAME: "Simon Golms"
33+
GIT_AUTHOR_EMAIL: "development@gol.ms"
34+
GIT_COMMITTER_NAME: "Simon Golms"
35+
GIT_COMMITTER_EMAIL: "development@gol.ms"
3636
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3737
run: npx semantic-release --extends './.github/.releaserc.js'

.lintstagedrc.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
module.exports = {
2-
'*.css': ['stylelint --fix', 'git add --force'],
3-
'*.{js,jsx}': [
2+
"*.css": ["stylelint --fix", "git add --force"],
3+
"*.{js,jsx}": [
44
// Extend rule set of .eslintrc.js with 'no-console' and 'no-unused-vars'
55
"eslint --fix --rule 'no-console: [error, { allow: [warn, error] }]' --rule 'no-unused-vars: error'",
6-
'git add --force',
6+
"git add --force",
77
],
8-
'*.{ts,tsx}': [
8+
"*.{ts,tsx}": [
99
// Extend rule set of .eslintrc.js with 'no-console' and '@typescript-eslint/no-unused-vars'
1010
"eslint --fix --rule 'no-console: [error, { allow: [warn, error] }]' --rule '@typescript-eslint/no-unused-vars: [error, { argsIgnorePattern: ^_, caughtErrorsIgnorePattern: ^_, varsIgnorePattern: ^_, }]'",
11-
'git add --force',
11+
"git add --force",
1212
],
13-
'*.json': ['prettier --write', 'git add --force'],
13+
"*.json": ["prettier --write", "git add --force"],
1414
};

.prettierrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = require('@boehringer-ingelheim/prettier-config');
1+
module.exports = require("@boehringer-ingelheim/prettier-config");

.stylelintrc.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
module.exports = {
2-
extends: ['stylelint-config-standard', 'stylelint-prettier/recommended'],
3-
plugins: ['stylelint-order', 'stylelint-prettier'],
2+
extends: ["stylelint-config-standard", "stylelint-prettier/recommended"],
3+
plugins: ["stylelint-order", "stylelint-prettier"],
44
rules: {
55
/**
66
* Ionic uses colors with an opacity (alpha) in several components.
77
* In order for this to work, those properties must be provided in RGB format
88
* in a comma separated format without parentheses.
99
* see: https://ionicframework.com/docs/theming/advanced#the-alpha-problem
1010
*/
11-
'color-function-notation': 'legacy',
12-
'order/order': ['custom-properties', 'declarations'],
13-
'order/properties-alphabetical-order': true,
11+
"color-function-notation": "legacy",
12+
"order/order": ["custom-properties", "declarations"],
13+
"order/properties-alphabetical-order": true,
1414
},
1515
};

0 commit comments

Comments
 (0)