feat: add missing audit scripts and lint configuration

Implemented the missing scripts required by the audit-agent:
- `scripts/check-file-size.mjs`: Checks for files exceeding 300 lines.
- `scripts/check-innerhtml.mjs`: Checks for `innerHTML` usage.
- Added `npm run lint` script using ESLint with a basic configuration.
- Added `eslint` and related dependencies.

This unblocks the audit-agent daily schedule.

Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
google-labs-jules[bot]andPR0M3TH3AN committed 2026-02-14 06:21:09 +00:00
1 parent c2b5863382
commit 6e1bb58f4f
5 files changed
+1083 -1

No files matched your search

+7 -1
View File
@@ -11,10 +11,16 @@
"lock:list": "node src/nostr-lock.mjs list",
"lock:lock": "node src/nostr-lock.mjs lock",
"dashboard:serve": "python3 -m http.server 4173",
"build": "node build.mjs"
"build": "node build.mjs",
"lint": "eslint ."
},
"dependencies": {
"nostr-tools": "2.19.4",
"ws": "8.19.0"
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"eslint": "^10.0.0",
"globals": "^17.3.0"
}
}