Skip to content

Commit fc31d21

Browse files
committed
fix: ci build problem
1 parent 3a2d4ba commit fc31d21

5 files changed

Lines changed: 113 additions & 26 deletions

File tree

.eslintrc.cjs

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

.github/workflows/docs.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,34 +4,37 @@ on:
44
push:
55
branches: [main]
66

7+
permissions:
8+
contents: read
9+
pages: write
10+
id-token: write
11+
712
jobs:
8-
build-docs:
13+
build:
914
runs-on: ubuntu-latest
1015
steps:
1116
- uses: actions/checkout@v4
1217
- uses: actions/setup-node@v4
1318
with:
1419
node-version: 20
1520
cache: 'npm'
16-
1721
- run: npm ci
1822
- run: npm run docs
1923

24+
# Debug-Ausgabe: zeigt, ob docs/ wirklich existiert
25+
- run: ls -R docs || echo "no docs found"
26+
27+
- uses: actions/configure-pages@v5
2028
- uses: actions/upload-pages-artifact@v3
2129
with:
2230
path: docs
2331

2432
deploy:
25-
needs: build-docs
33+
needs: build
2634
runs-on: ubuntu-latest
27-
permissions:
28-
pages: write
29-
id-token: write
30-
3135
environment:
3236
name: github-pages
3337
url: ${{ steps.deployment.outputs.page_url }}
34-
3538
steps:
3639
- id: deployment
3740
uses: actions/deploy-pages@v4

eslint.config.js

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
// eslint.config.js
2+
import js from '@eslint/js';
3+
import tseslint from 'typescript-eslint';
4+
import globals from 'globals';
5+
6+
export default [
7+
// Ignoriere Build-/Infra-Kram
8+
{ ignores: ['dist/**', 'coverage/**', 'node_modules/**', 'etc/**', '.github/**'] },
9+
10+
// JS-Basisregeln
11+
js.configs.recommended,
12+
13+
// TypeScript-Empfehlungen (ohne Type-Checking -> schnell & robust in CI)
14+
...tseslint.configs.recommended,
15+
16+
// TS-spezifische Settings/Regeln
17+
{
18+
files: ['**/*.ts', '**/*.tsx'],
19+
languageOptions: {
20+
ecmaVersion: 'latest',
21+
sourceType: 'module',
22+
globals: { ...globals.node },
23+
},
24+
rules: {
25+
// Dein Projektstil:
26+
'no-console': 'off',
27+
},
28+
},
29+
30+
// Test-Dateien: Vitest-Globals erlauben
31+
{
32+
files: ['**/*.test.ts', 'test/**/*.ts'],
33+
languageOptions: {
34+
globals: {
35+
...globals.node,
36+
describe: 'readonly',
37+
it: 'readonly',
38+
expect: 'readonly',
39+
beforeAll: 'readonly',
40+
afterAll: 'readonly',
41+
afterEach: 'readonly',
42+
},
43+
},
44+
rules: {},
45+
},
46+
47+
// Kollisionen mit Prettier vermeiden
48+
{
49+
rules: {
50+
...{ }, // hier nichts nötig – config-prettier reicht
51+
},
52+
},
53+
];

package-lock.json

Lines changed: 44 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"docs:clean": "rimraf docs",
3434
"format": "prettier --write .",
3535
"format:check": "prettier --check .",
36-
"lint": "eslint .",
36+
"lint": "eslint . --max-warnings=0",
3737
"test": "vitest run",
3838
"dev:test": "vitest",
3939
"prepublishOnly": "npm run build && npm run docs",
@@ -42,13 +42,15 @@
4242
"postbuild": "api-extractor run --local --no-update-report"
4343
},
4444
"devDependencies": {
45+
"@eslint/js": "^9.39.1",
4546
"@microsoft/api-extractor": "^7.54.0",
4647
"@microsoft/tsdoc": "^0.15.1",
4748
"@types/node": "^24.10.0",
4849
"@typescript-eslint/eslint-plugin": "^8.13.0",
4950
"@typescript-eslint/parser": "^8.13.0",
50-
"eslint": "^9.13.0",
51+
"eslint": "^9.39.1",
5152
"eslint-config-prettier": "^10.1.8",
53+
"globals": "^16.5.0",
5254
"nock": "^14.0.10",
5355
"node-fetch": "^2.7.0",
5456
"prettier": "^3.6.2",
@@ -59,6 +61,7 @@
5961
"typedoc": "^0.28.14",
6062
"typedoc-plugin-markdown": "^4.9.0",
6163
"typescript": "^5.9.3",
64+
"typescript-eslint": "^8.46.3",
6265
"undici": "^7.16.0",
6366
"vitest": "^2.1.9"
6467
},

0 commit comments

Comments
 (0)