- eslint.config.js (NEU): Flat-Config fuer ESLint 9 - Globals explizit definiert (console, process, Buffer, etc.) - TypeScript-Parser + Plugin - Rules: no-unused-vars, no-explicit-any (warn) - Tests haben relaxed rules (no-explicit-any off, fuer Mocks) - .eslintrc.cjs -> .eslintrc.cjs.bak (Deprecation-Warnung weg) - package.json scripts.lint: USE_FLAT_CONFIG-Flag entfernt (default flat) - Tests: 2 tote Variablen entfernt - tests/tfidf.test.ts: jaccardSim (ungenutzt, nur Kommentar-Vergleich noetig) - tests/webapp/manifest.test.ts: indexHtmlPath (ungenutzt) Verifiziert: - 117/117 Tests gruen - ESLint exit 0 (ohne Deprecation-Warnung) - Tool-Build OK, Webapp-Build OK
63 lines
1.6 KiB
JSON
63 lines
1.6 KiB
JSON
{
|
|
"name": "mindomat",
|
|
"version": "0.1.0",
|
|
"description": "Lokales Second-Brain-System für Obsidian-kompatible Markdown-Vaults",
|
|
"type": "module",
|
|
"bin": {
|
|
"mindomat": "./bin/mindomat.mjs"
|
|
},
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"import": "./dist/index.js"
|
|
}
|
|
},
|
|
"files": [
|
|
"bin",
|
|
"dist",
|
|
"README.md"
|
|
],
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"dev": "tsc --watch",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"lint": "eslint src/ tests/ --ext .ts",
|
|
"format": "prettier --write \"src/**/*.ts\" \"tests/**/*.ts\" \"webapp/src/**/*.{ts,tsx}\"",
|
|
"format:check": "prettier --check \"src/**/*.ts\" \"tests/**/*.ts\" \"webapp/src/**/*.{ts,tsx}\"",
|
|
"init-vault": "npm run build && node bin/mindomat.mjs init-vault",
|
|
"index": "npm run build && node bin/mindomat.mjs index",
|
|
"ingest": "npm run build && node bin/mindomat.mjs ingest",
|
|
"sync": "npm run build && node bin/mindomat.mjs sync"
|
|
},
|
|
"keywords": [
|
|
"second-brain",
|
|
"obsidian",
|
|
"markdown",
|
|
"knowledge-management",
|
|
"pkm"
|
|
],
|
|
"license": "MIT",
|
|
"engines": {
|
|
"node": ">=22.0.0"
|
|
},
|
|
"dependencies": {
|
|
"gray-matter": "^4.0.3"
|
|
},
|
|
"devDependencies": {
|
|
"@testing-library/react": "^16.3.3",
|
|
"@types/node": "^22.0.0",
|
|
"@typescript-eslint/eslint-plugin": "^8.69.0",
|
|
"@typescript-eslint/parser": "^8.69.0",
|
|
"chokidar": "^5.0.0",
|
|
"eslint": "^9.39.5",
|
|
"eslint-config-prettier": "^10.1.8",
|
|
"jsdom": "^30.0.1",
|
|
"prettier": "^3.9.6",
|
|
"typescript": "^5.6.0",
|
|
"vitest": "^5.0.0"
|
|
}
|
|
}
|