netajam_obsidian_note_uid_g.../package.json
Netajam a6248b32b5 Restore working ESLint setup and clear pre-existing lint debt
Adds eslint@^8 as a devDependency (the .eslintrc has long referenced
@typescript-eslint plugins, but eslint itself was never installed, so
`npx eslint` failed out of the box) and wires up an `npm run lint`
script for parity with the existing build/test scripts.

Fixes the 7 errors and 2 warnings that surface once lint actually runs:
- prefer-const on `isInside` / `outputLines` (commands.ts).
- no-inferrable-types on `overwrite: boolean = false` (uidUtils.ts).
- no-unused-vars: removes `filesWithUidCount`, which was incremented
  in two copy handlers but never read.
- no-explicit-any: silenced file-wide in src/typings/obsidian.d.ts with
  a comment explaining the intent — these declarations mirror Obsidian's
  upstream d.ts conventions for undocumented APIs (callbacks return any,
  opaque ctx is any), and refining them would diverge from upstream.
2026-04-27 20:53:50 +02:00

34 lines
917 B
JSON

{
"name": "note_uid_generator",
"version": "1.2.1",
"description": "Obsidian plugin to generate unique IDs (UUID, NanoID, or ULID) for your notes",
"main": "src/main.js",
"scripts": {
"dev": "node esbuild.config.mjs",
"build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production",
"lint": "eslint \"src/**/*.ts\"",
"test": "vitest run",
"test:watch": "vitest",
"version": "node version-bump.mjs && git add manifest.json versions.json"
},
"keywords": [],
"author": "",
"license": "MIT",
"devDependencies": {
"@types/node": "^16.11.6",
"@typescript-eslint/eslint-plugin": "5.29.0",
"@typescript-eslint/parser": "5.29.0",
"builtin-modules": "3.3.0",
"esbuild": "^0.25.2",
"eslint": "^8.57.1",
"obsidian": "latest",
"tslib": "2.4.0",
"typescript": "4.7.4",
"vitest": "^1.6.1"
},
"dependencies": {
"nanoid": "^3.3.7",
"ulid": "^3.0.2",
"uuid": "^11.1.0"
}
}