Skip to content

fix: create a working prettier config #164

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
<!-- Add a short description here / Eine kurze Beschreibung hier einfügen -->

## Checklist

<!-- Check fields with: [x] / Abhaken von Punkten: [x] -->

- [ ] Check the License of new pictures (non-commercial use without attribution) <!-- Die Lizenz neuer Bilder geprüft (nicht-kommerzielle Nutzung ohne Namensnennung) -->

The content was modified in the following languages: <!-- Der Inhalt wurde für die folgenden Sprachen angepasst -->

- [ ] English
- [ ] German
4 changes: 2 additions & 2 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: lint

on:
push:
branches: ['**']
branches: ["**"]
pull_request:
branches: [main]

Expand All @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version: "3.12"
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Run pre-commit
Expand Down
27 changes: 9 additions & 18 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,20 +1,11 @@
{
"$schema": "http://json.schemastore.org/prettierrc",
"bracketSameLine": true,
"bracketSpacing": true,
"endOfLine": "lf",
"goTemplateBracketSpacing": true,
"overrides": [
{
"files": ["*.html", "*.gotmpl", "*.tmpl.*"],
"options": {
"parser": "go-template",
"bracketSameLine": true
}
"plugins": ["prettier-plugin-go-template"],
"overrides": [
{
"files": ["*.html"],
"options": {
"parser": "go-template"
}
],
"plugins": ["prettier-plugin-toml", "prettier-plugin-go-template"],
"singleQuote": true,
"tabWidth": 2,
"useTabs": false
}
}
]
}
36 changes: 0 additions & 36 deletions archetypes/country.en.md

This file was deleted.

18 changes: 16 additions & 2 deletions archetypes/country/index.de.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
---
draft: false
title: '{{ .File.ContentBaseName | title }}' # Ändere den Name auf den deutschen Ländername
country: '{{ .File.ContentBaseName }}'
title: "{{ .File.ContentBaseName | title }}" # Ändere den Name auf den deutschen Ländername
country: "{{ .File.ContentBaseName }}"
---

<!-- Entferne das "WIP" Snippet, wenn die Inhalte der Seite vollständig sind -->

{{< snippet wip >}}

## FIP Nutzung
Expand All @@ -29,12 +30,25 @@ country: '{{ .File.ContentBaseName }}'
- Schöne Bahnhöfe
-->

## Grenzpunkte

<!--
Nur Grenzpunkte an der Landesgrenze zu anderen Ländern. Diese sollten aufgeführt sein als Land (Bahngesellschaft) und ihre Grenzpunkte.
-->

{{% expander "Grenzpunkte" %}}
| Land | Grenzpunkte |
| --- | --- |
{{% /expander %}}

## FIP Bewertung

<!--
Die Bewertungskriterien befinden sich noch im Aufbau.
-->

## Betreiber ohne FIP

<!-- Ersetze den generischen Link mit dem Link zum jeweiligen Betreiber -->

- [Name der Bahngesellschaft](../../operator)
18 changes: 16 additions & 2 deletions archetypes/country/index.en.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
---
draft: false
title: '{{ .File.ContentBaseName | title }}'
country: '{{ .File.ContentBaseName }}'
title: "{{ .File.ContentBaseName | title }}"
country: "{{ .File.ContentBaseName }}"
---

<!-- Remove the WIP snippet if the page is complete -->

{{< snippet wip >}}

## FIP Information
Expand All @@ -29,12 +30,25 @@ country: '{{ .File.ContentBaseName }}'
- Beautiful train stations
-->

## Border Points

<!--
Only border points at the national border with other countries. These should be listed as country (railway operator) and their border points.
-->

{{% expander "Border Points" %}}
| Country | Border Points |
| --- | --- |
{{% /expander %}}

## FIP Rating

<!--
The rating criteria are still under development
-->

## Operators without FIP

<!-- Replace the general link with a link to the operator -->

- [Name of the operator](../../operator)
Loading
Loading