Add JS toolchain: TypeScript, ESLint, Prettier, Vitest

package.json declares the project as ESM with NodeNext module resolution,
exposing dist/index.js as the library entry and dist/bin/quack.js as the
CLI binary. Dev dependencies are pinned to exact versions (yarn.lock holds
the integrity hashes per repo policy on hash-pinned external references).
Adds a placeholder src/index.ts and a single smoke test so make check is
not a no-op.
This commit is contained in:
2026-05-09 21:29:13 +02:00
parent 65b5124cf5
commit 47cdb5ca8b
6 changed files with 1513 additions and 0 deletions

10
eslint.config.mjs Normal file
View File

@@ -0,0 +1,10 @@
import js from "@eslint/js";
import tseslint from "typescript-eslint";
export default tseslint.config(
{
ignores: ["dist/", "node_modules/", "coverage/", ".vitest-cache/"],
},
js.configs.recommended,
...tseslint.configs.recommended,
);