Skip to content

Commit 2ed8892

Browse files
committed
Prettier pre commit fixeds.
1 parent b31e77e commit 2ed8892

17 files changed

+300938
-2814
lines changed

.github/dependabot.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
version: 2
22
updates:
3-
- package-ecosystem: 'github-actions'
4-
directory: '/'
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
55
schedule:
6-
interval: 'monthly'
7-
- package-ecosystem: 'npm'
8-
directory: '/'
6+
interval: "monthly"
7+
- package-ecosystem: "npm"
8+
directory: "/"
99
schedule:
10-
interval: 'monthly'
10+
interval: "monthly"
1111
versioning-strategy: increase
1212
groups:
1313
all:
1414
applies-to: version-updates
1515
patterns:
16-
- '*'
16+
- "*"

.github/workflows/build.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,19 @@ jobs:
1515
run:
1616
working-directory: ./frontend
1717
steps:
18-
- uses: actions/checkout@v4
19-
- uses: pnpm/action-setup@v4
20-
name: Install pnpm
21-
with:
22-
version: 10
23-
run_install: false
24-
- name: Install Node.js
25-
uses: actions/setup-node@v6
26-
with:
27-
node-version: 22
28-
cache: 'pnpm'
29-
cache-dependency-path: 'frontend/pnpm-lock.yaml'
30-
- name: Install dependencies
31-
run: pnpm i
32-
- name: Build project
33-
run: pnpm run build
18+
- uses: actions/checkout@v4
19+
- uses: pnpm/action-setup@v4
20+
name: Install pnpm
21+
with:
22+
version: 10
23+
run_install: false
24+
- name: Install Node.js
25+
uses: actions/setup-node@v6
26+
with:
27+
node-version: 22
28+
cache: "pnpm"
29+
cache-dependency-path: "frontend/pnpm-lock.yaml"
30+
- name: Install dependencies
31+
run: pnpm i
32+
- name: Build project
33+
run: pnpm run build

.github/workflows/deploy-pages.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: Deploy static content to Pages
44
on:
55
# Runs on pushes targeting the default branch
66
push:
7-
branches: ['main']
7+
branches: ["main"]
88

99
# Allows you to run this workflow manually from the Actions tab
1010
workflow_dispatch:
@@ -17,7 +17,7 @@ permissions:
1717

1818
# Allow one concurrent deployment
1919
concurrency:
20-
group: 'pages'
20+
group: "pages"
2121
cancel-in-progress: true
2222

2323
jobs:
@@ -41,8 +41,8 @@ jobs:
4141
uses: actions/setup-node@v6
4242
with:
4343
node-version: 22
44-
cache: 'pnpm'
45-
cache-dependency-path: 'frontend/pnpm-lock.yaml'
44+
cache: "pnpm"
45+
cache-dependency-path: "frontend/pnpm-lock.yaml"
4646
- name: Install dependencies
4747
run: pnpm install --frozen-lockfile
4848
- name: Build
@@ -55,7 +55,7 @@ jobs:
5555
uses: actions/upload-pages-artifact@v4
5656
with:
5757
# Upload dist folder
58-
path: './frontend/dist'
58+
path: "./frontend/dist"
5959
- name: Deploy to GitHub Pages
6060
id: deployment
6161
uses: actions/deploy-pages@v4

.github/workflows/docker_build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Docker build and push
22
on:
33
push:
4-
branches: [ main ]
4+
branches: [main]
55
workflow_dispatch:
66
release:
77
types: [published]

.github/workflows/playwright.yml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -17,27 +17,27 @@ jobs:
1717
run:
1818
working-directory: ./frontend
1919
steps:
20-
- uses: actions/checkout@v5
21-
- uses: pnpm/action-setup@v4
22-
name: Install pnpm
23-
with:
24-
version: 10
25-
run_install: false
26-
- name: Install Node.js
27-
uses: actions/setup-node@v6
28-
with:
29-
node-version: 22
30-
cache: 'pnpm'
31-
cache-dependency-path: 'frontend/pnpm-lock.yaml'
32-
- name: Install dependencies
33-
run: pnpm i
34-
- name: Install Playwright Browsers
35-
run: pnpm exec playwright install --with-deps
36-
- name: Run Playwright tests
37-
run: pnpm test
38-
- uses: actions/upload-artifact@v6
39-
if: ${{ !cancelled() }}
40-
with:
41-
name: playwright-report
42-
path: playwright-report/
43-
retention-days: 30
20+
- uses: actions/checkout@v5
21+
- uses: pnpm/action-setup@v4
22+
name: Install pnpm
23+
with:
24+
version: 10
25+
run_install: false
26+
- name: Install Node.js
27+
uses: actions/setup-node@v6
28+
with:
29+
node-version: 22
30+
cache: "pnpm"
31+
cache-dependency-path: "frontend/pnpm-lock.yaml"
32+
- name: Install dependencies
33+
run: pnpm i
34+
- name: Install Playwright Browsers
35+
run: pnpm exec playwright install --with-deps
36+
- name: Run Playwright tests
37+
run: pnpm test
38+
- uses: actions/upload-artifact@v6
39+
if: ${{ !cancelled() }}
40+
with:
41+
name: playwright-report
42+
path: playwright-report/
43+
retention-days: 30

.github/workflows/super-linter.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ permissions:
1212
checks: write
1313
on:
1414
push:
15-
branches: [ "main" ]
15+
branches: ["main"]
1616
pull_request:
17-
branches: [ "main" ]
17+
branches: ["main"]
1818
jobs:
1919
run-lint:
2020
runs-on: ubuntu-latest
@@ -24,7 +24,7 @@ jobs:
2424
with:
2525
# Full git history is needed to get a proper list of changed files within `super-linter`
2626
fetch-depth: 0
27-
27+
2828
- name: Setup pnpm
2929
uses: pnpm/action-setup@v4
3030
with:
@@ -40,14 +40,17 @@ jobs:
4040
- name: Install dependencies
4141
run: pnpm install --frozen-lockfile
4242
working-directory: frontend
43-
43+
4444
- name: Lint Code Base
4545
uses: github/super-linter@v7
4646
env:
4747
VALIDATE_ALL_CODEBASE: false
4848
DEFAULT_BRANCH: "main"
4949
GITHUB_TOKEN: ${{ github.token }}
50-
50+
VALIDATE_JSCPD: false
51+
VALIDATE_JSON_PRETTIER: true
52+
VALIDATE_YAML_PRETTIER: true
53+
5154
- name: Run ESLint
5255
run: pnpm lint
5356
working-directory: frontend

.pre-commit-config.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,21 @@ repos:
33
rev: v5.0.0
44
hooks:
55
- id: check-yaml
6+
- id: check-json
67
- id: end-of-file-fixer
78
- id: trailing-whitespace
89
- id: mixed-line-ending
910
- id: check-toml
1011

12+
- repo: local
13+
hooks:
14+
- id: prettier-json-yaml
15+
name: prettier-json-yaml
16+
entry: prettier --write
17+
language: node
18+
types_or: [json, yaml]
19+
additional_dependencies: ["prettier@3.6.2"]
20+
1121
- repo: https://github.com/rhysd/actionlint
1222
rev: "v1.7.7"
1323
hooks:
@@ -16,5 +26,5 @@ repos:
1626
- repo: https://github.com/biomejs/pre-commit
1727
rev: "v2.0.0-beta.5"
1828
hooks:
19-
- id: biome-check
29+
- id: biome-check
2030
additional_dependencies: ["@biomejs/biome@1.9.4"]

0 commit comments

Comments
 (0)