10af5a50e5
parse.js/sync.js/lib/dotenv.js -> .ts (run via tsx), ajout tsconfig.json, eslint config TS-enabled (parser tseslint + resolver typescript), devDeps typescript/typescript-eslint/tsx/eslint-import-resolver-typescript, scripts package.json en tsx + typecheck, .lintstagedrc *.ts, README en tsx. Fix securite: escapeId sur les identifiants de colonnes dans sync.ts (au lieu de backticks bruts) pour ne pas casser/injecter via un en-tete CSV distant. Suppression du todo.txt audit (finding escapeId traite). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
7 lines
223 B
TypeScript
7 lines
223 B
TypeScript
import { findUpSync } from 'find-up';
|
|
import dotenv from 'dotenv';
|
|
import path from 'node:path';
|
|
|
|
const foundenv = findUpSync('.env', { cwd: path.dirname(process.argv[1]) });
|
|
dotenv.config({ path: foundenv, quiet: true });
|