Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
69d0c26
chore: upgrade packages
jliermann Sep 10, 2026
2a09001
chore: remove playwright baseline from gitignore
jliermann Sep 10, 2026
9e603bf
test: visual baseline
jliermann Sep 10, 2026
8c68bbc
chore: remove outdated lint and PR validation workflows; add new PR c…
jliermann Sep 10, 2026
f3d09c8
refactor: extract build log checks into a separate script
jliermann Sep 10, 2026
12035da
refactor: rename linting jobs and update npm scripts to use 'test' te…
jliermann Sep 10, 2026
6aa2aca
refactor: reorganize validation scripts and update paths for content …
jliermann Sep 10, 2026
deb9a8a
format: docs
jliermann Sep 10, 2026
3068306
refactor: update content validation script and configuration for SEO …
jliermann Sep 10, 2026
783f06d
refactor: update testing documentation to reflect changes in npm scri…
jliermann Sep 10, 2026
105a367
chore: update package.json to add ESLint for JavaScript linting and i…
jliermann Sep 10, 2026
6defee4
refactor: add JS check step to PR workflow for ESLint integration
jliermann Sep 10, 2026
17253c1
fix: correct regex in ShortenDesc component for splitting description
jliermann Sep 10, 2026
c4661da
refactor: streamline resultOutput variable handling in Lbe component
jliermann Sep 10, 2026
0dbdf6d
fix: add rel="noreferrer" to external link in LbeBlock component for …
jliermann Sep 10, 2026
94919db
fix: remove duplicate item
jliermann Sep 10, 2026
a63b17e
refactor: simplify error handling and remove unused variables in vali…
jliermann Sep 10, 2026
7189e8e
chore: update test scripts and add CSS linting
jliermann Sep 10, 2026
8295983
feat: add CSS check to PR workflow and update build validation steps
jliermann Sep 10, 2026
d128621
refactor: simplify flex properties in BulletBox.module.css
jliermann Sep 10, 2026
7a6404b
refactor: update color format and media query condition in ChemotionC…
jliermann Sep 10, 2026
f7bafa0
refactor: update CSS import syntax and improve color definitions in c…
jliermann Sep 10, 2026
04912a0
refactor: remove unused .svgDescBox class from DecisionTree.module.css
jliermann Sep 10, 2026
ba02737
refactor: update CSS import syntax and simplify flex properties in El…
jliermann Sep 10, 2026
da09666
refactor: simplify margin declaration in FloatImage.module.css
jliermann Sep 10, 2026
e2ec6fc
refactor: update media query conditions and simplify layout propertie…
jliermann Sep 10, 2026
daa8140
refactor: add spacing for consistency and update word-wrap to overflo…
jliermann Sep 10, 2026
6790df6
refactor: update media query condition for .videoInfo in video.module…
jliermann Sep 10, 2026
cc4d9b7
refactor: update media query syntax for responsiveness in index.modul…
jliermann Sep 10, 2026
225fd97
docs: update testing documentation to include JS and CSS checks
jliermann Sep 10, 2026
e69bf1e
Update link attributes for security improvements
jliermann Sep 10, 2026
026170b
Modify build log script to use default for summary
jliermann Sep 10, 2026
4253d45
Fix typos and formatting in testing.md
jliermann Sep 10, 2026
491fd61
Merge branch 'main' into refactor/tests
jliermann Sep 10, 2026
d58f720
chore: format
jliermann Sep 10, 2026
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
12 changes: 11 additions & 1 deletion .github/actions/setup-node-env/action.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,24 @@
name: "Setup Node environment"
description: "Set up Node.js with npm cache and install dependencies"
description: "Checkout code, set up Node.js with npm cache, and install dependencies"

inputs:
node-version:
description: "Node.js version to use"
required: false
default: "lts/*"
fetch-depth:
description: "Number of commits to fetch (0 = all history)"
required: false
default: "1"

runs:
using: "composite"
steps:
- name: Checkout code
uses: actions/checkout@v5
with:
fetch-depth: ${{ inputs.fetch-depth }}

- name: Setup Node.js
uses: actions/setup-node@v6
with:
Expand Down
88 changes: 0 additions & 88 deletions .github/workflows/lint.yml

This file was deleted.

3 changes: 0 additions & 3 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ on:
paths: *watched-paths
workflow_dispatch:

permissions:
contents: read

jobs:
content-check:
name: Content Check
Expand Down
101 changes: 0 additions & 101 deletions .github/workflows/pr-validation.yml

This file was deleted.

1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ yarn.lock
# Playwright artifacts
playwright-report/
test-results/
tests/e2e/**/*.spec.ts-snapshots/
# config for staging
docusaurus.config.js
.Rproj.user
Expand Down
9 changes: 9 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": ["stylelint-config-standard"],
"ignoreFiles": ["build/**", ".docusaurus/**", "static/**"],
"rules": {
"selector-class-pattern": null,
"custom-property-pattern": null,
"no-descending-specificity": null
}
}
6 changes: 3 additions & 3 deletions VALIDATION_PROPOSAL.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Dieser Proposal implementiert ein automatisches Validierungssystem für Pull Req

### 1. Validierungsskript

**Datei:** `scripts/validate-content.js`
**Datei:** `tests/content/validate-content.js`

- ✅ Prüft alle `md` und `mdx`-Dateien im `docs/`-Verzeichnis
- ✅ Validiert Frontmatter auf gültiges YAML und erforderlichen Slug
Expand Down Expand Up @@ -51,7 +51,7 @@ npm run validate-content
- ✅ `scripts/VALIDATION_SETUP.md` - Detaillierte Setup-Anleitung
- ✅ `scripts/EXAMPLES.md` - Praktische Beispiele für gültige/ungültige Dateien
- ✅ `scripts/README.md` - Schnelle Übersicht
- ✅ `scripts/validation.config.js` - Vorschläge für Erweiterungen
- ✅ `tests/content/validation.config.js` - Vorschläge für Erweiterungen

## 📋 Validierungsregeln

Expand Down Expand Up @@ -191,7 +191,7 @@ Das System ist modular und kann leicht erweitert werden:
- MDX-Lint
- Remark-Plugins

Siehe `scripts/validation.config.js` für Implementierungs-Ideen.
Siehe `tests/content/validation.config.js` für Implementierungs-Ideen.

## 📊 Statistik

Expand Down
92 changes: 92 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
const js = require("@eslint/js");
const react = require("eslint-plugin-react");
const reactHooks = require("eslint-plugin-react-hooks");
const tseslint = require("typescript-eslint");
const globals = require("globals");
const eslintConfigPrettier = require("eslint-config-prettier");

module.exports = [
{
ignores: [
"build/**",
".docusaurus/**",
"node_modules/**",
"static/**",
"docs/**",
"i18n/**",
"playwright-report/**",
"test-results/**",
"tests/e2e/**/*-snapshots/**",
],
},

// React components and other browser-side JS/JSX under src/
{
files: ["src/**/*.{js,jsx}"],
languageOptions: {
ecmaVersion: "latest",
sourceType: "module",
// require/module are provided by webpack for static asset imports (e.g. via the @site alias)
globals: {
...globals.browser,
require: "readonly",
module: "readonly",
},
parserOptions: {
ecmaFeatures: { jsx: true },
},
},
plugins: { react, "react-hooks": reactHooks },
rules: {
...js.configs.recommended.rules,
...react.configs.recommended.rules,
// Downgraded to warnings: existing code is not yet fully compliant
"react-hooks/rules-of-hooks": "warn",
"react-hooks/exhaustive-deps": "warn",
"react/react-in-jsx-scope": "off", // not needed with React 19 / new JSX transform
"react/prop-types": "off",
},
settings: {
react: { version: "detect" },
},
},

// Node-based CommonJS scripts (config files, content validation tooling)
{
files: [
"tests/content/**/*.js",
"*.config.js",
"sidebars.js",
"copyright.js",
],
languageOptions: {
ecmaVersion: "latest",
sourceType: "commonjs",
globals: globals.node,
},
rules: {
...js.configs.recommended.rules,
},
},

// docusaurus.config.js mixes ESM import/export with require() (handled by Docusaurus' bundler)
{
files: ["docusaurus.config.js"],
languageOptions: {
ecmaVersion: "latest",
sourceType: "module",
globals: globals.node,
},
rules: {
...js.configs.recommended.rules,
},
},

// TypeScript E2E tests: syntactic linting only (no type-checked rules)
...tseslint.configs.recommended.map((config) => ({
...config,
files: ["tests/e2e/**/*.ts", "playwright.config.ts"],
})),

eslintConfigPrettier,
];
Loading
Loading