Skip to content

Commit 70b1c03

Browse files
committed
feat: add prettier
- refactor eslint config to 'flat config' format - add scripts to check/write formatting in `package.json` - ci: add job to check files - ci: only set major node version
1 parent 6966437 commit 70b1c03

File tree

196 files changed

+5803
-2965
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

196 files changed

+5803
-2965
lines changed

.eslintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.eslintrc.json

Lines changed: 0 additions & 72 deletions
This file was deleted.

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
src/sbom.json diff=sbom
2+
* text=auto eol=lf

.github/ISSUE_TEMPLATE/bug-report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ about: Erstellen Sie einen Bericht, der uns hilft, uns zu verbessern
44
title: ''
55
labels: ''
66
assignees: ''
7-
87
---
8+
99
# Bug
1010

1111
Kurzbeschreibung des Bugs

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ about: Schlage eine Idee für dieses Projekt vor
44
title: ''
55
labels: ''
66
assignees: ''
7-
87
---
8+
99
# Story
10-
Als *Anforderer* möchte ich, dass ... um *Begründung*.
10+
11+
Als _Anforderer_ möchte ich, dass ... um _Begründung_.
1112

1213
# Technische Details
1314

.github/dependabot.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
version: 2
22
updates:
3-
- package-ecosystem: "npm"
4-
directory: "/"
3+
- package-ecosystem: 'npm'
4+
directory: '/'
55
schedule:
6-
interval: "daily"
6+
interval: 'daily'
77
assignees:
8-
- "BGruenberg"
8+
- 'BGruenberg'
99
cooldown:
1010
default-days: 7
1111

12-
- package-ecosystem: "docker"
13-
directory: "/"
12+
- package-ecosystem: 'docker'
13+
directory: '/'
1414
schedule:
1515
interval: weekly
1616
day: monday
17-
time: "09:00"
17+
time: '09:00'
1818
timezone: Europe/Berlin
1919

20-
- package-ecosystem: "github-actions"
21-
directory: "/"
20+
- package-ecosystem: 'github-actions'
21+
directory: '/'
2222
schedule:
2323
interval: weekly
2424
day: monday
25-
time: "09:00"
25+
time: '09:00'
2626
timezone: Europe/Berlin

.github/workflows/docker.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: docker
22

33
on:
44
workflow_run:
5-
workflows: [ release ]
6-
types: [ completed ]
7-
branches: [ main ]
5+
workflows: [release]
6+
types: [completed]
7+
branches: [main]
88

99
jobs:
1010
build-push-opencode:

.github/workflows/node.js.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: node-js
22

33
on:
44
push:
5-
branches: [ "main" ]
5+
branches: ['main']
66
pull_request:
7-
branches: [ "main" ]
7+
branches: ['main']
88

99
jobs:
1010
lint-audit:
@@ -15,7 +15,7 @@ jobs:
1515
- uses: actions/checkout@v6
1616
- uses: actions/setup-node@v6
1717
with:
18-
node-version: 22.18.x
18+
node-version: 22
1919
cache: 'npm'
2020
- run: npm ci
2121
- run: npm run lint
@@ -32,7 +32,7 @@ jobs:
3232
- uses: actions/checkout@v6
3333
- uses: actions/setup-node@v6
3434
with:
35-
node-version: 22.18.x
35+
node-version: 22
3636
cache: 'npm'
3737
- run: npm ci
3838
- run: npm run build
@@ -49,3 +49,17 @@ jobs:
4949
with:
5050
name: cypress-screenshots
5151
path: cypress/screenshots
52+
53+
prettier:
54+
permissions:
55+
contents: read
56+
runs-on: ubuntu-latest
57+
steps:
58+
- uses: actions/checkout@v6
59+
- uses: actions/setup-node@v6
60+
with:
61+
node-version: 22
62+
cache: 'npm'
63+
- run: |
64+
npm ci
65+
npm run format

.github/workflows/sbom.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: sbom
22
on:
33
pull_request:
4-
branches: [ "main" ]
4+
branches: ['main']
55

66
jobs:
77
generate-and-compare-sbom:
@@ -17,7 +17,7 @@ jobs:
1717
run: sudo apt-get update && sudo apt-get install -y jq
1818
- uses: actions/setup-node@v6
1919
with:
20-
node-version: 22.18.x
20+
node-version: 22
2121
cache: 'npm'
2222
- name: Install dependencies
2323
run: npm ci

.gitlab/.gitlab-ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
include:
2-
- project: "dabstimmbox/open-source/oss-pipelines"
3-
ref: "main"
4-
file: "frontend.yml"
2+
- project: 'dabstimmbox/open-source/oss-pipelines'
3+
ref: 'main'
4+
file: 'frontend.yml'

0 commit comments

Comments
 (0)