chore: add eslint, remove dead variables, pin line endings (P0-4)

This commit is contained in:
Benjamin Oezcan
2026-11-19 01:41:27 +01:00
parent fa68ef620d
commit 1156bc68eb
8 changed files with 1134 additions and 6 deletions

View File

@@ -64,7 +64,6 @@ function getTree(p) {
}
const setNode = db.prepare('INSERT INTO nodes (path, data, ts) VALUES (?, ?, ?) ON CONFLICT(path) DO UPDATE SET data = excluded.data, ts = excluded.ts');
const delExact = db.prepare('DELETE FROM nodes WHERE path = ?');
const delTree = db.prepare('DELETE FROM nodes WHERE path = ? OR path LIKE ?');
function putTree(p, value) { // replace the whole subtree at p