Compare commits

..

No commits in common. "5765cf285fdb648288355d495b3ae532c588844d" and "f0d6c62347026251a9f1abdba637cd161a3f793c" have entirely different histories.

5 changed files with 1 additions and 1595 deletions

View file

@ -1,21 +0,0 @@
'use strict';
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
rules: {
// Sicherheits-Guard: kein shell:true in child_process
'no-restricted-syntax': [
'error',
{
selector: 'Property[key.name="shell"][value.value=true]',
message: 'shell:true ist verboten — Command-Injection-Risiko. Nutze cross-spawn mit shell:false.'
}
],
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
},
env: { node: true, es2022: true },
ignorePatterns: ['dist/', 'node_modules/'],
};

View file

@ -1,34 +0,0 @@
name: CI
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
build-and-test:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- run: npm ci
- run: npm run build
- run: npm test
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- run: npm ci
- run: npm run lint

View file

@ -57,12 +57,3 @@ mv ./workspaces/* ~/.disclaw/workspaces/
```
Danach die DB-Eintraege in `data/disclaw.db` (Tabelle `workspaces`, Spalte `workspace_path`) aktualisieren.
## CI
Jeder Pull Request gegen `main` durchläuft automatisch:
- `npm run build` — TypeScript-Kompilierung (Linux + Windows)
- `npm test` — Vitest Unit- und Integration-Tests (Linux + Windows)
- `npm run lint` — ESLint mit `shell:true`-Guard
Pipeline-Konfiguration: `.forgejo/workflows/ci.yml`

1526
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -7,8 +7,7 @@
"build": "tsc",
"start": "node dist/index.js",
"dev": "tsc && node dist/index.js",
"test": "vitest run",
"lint": "eslint src --ext .ts"
"test": "vitest run"
},
"vitest": {
"include": ["tests/**/*.test.ts"],
@ -25,9 +24,6 @@
"@types/better-sqlite3": "^7.6.0",
"@types/cross-spawn": "^6.0.6",
"@types/node": "^22.0.0",
"@typescript-eslint/eslint-plugin": "^8.0.0",
"@typescript-eslint/parser": "^8.0.0",
"eslint": "^8.57.0",
"typescript": "^5.7.0",
"vitest": "^4.1.4"
},