mirror of
https://github.com/NVIDIA/NemoClaw.git
synced 2026-07-03 03:37:16 +00:00
* ci: add ESLint and tsc type checking for JavaScript files
Add lint and type-check coverage for all JS files outside the nemoclaw/
TypeScript sub-project (bin/, test/, scripts/, docs/_ext/).
- eslint.config.mjs: flat config with environment-specific settings
(CJS for bin/scripts, ESM for test, browser for docs)
- jsconfig.json: tsc --checkJs with bundler resolution, no strict
- prek hooks: eslint-js (pre-commit, priority 6) and tsc-check-js
(pre-push, priority 10)
- Fix 68 existing ESLint violations (empty catches, unused vars,
regex spaces, dead imports, useless try/catch)
- Fix 11 tsc type errors via JSDoc casts and @ts-expect-error pragmas
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: remove dead code flagged in review
- bin/lib/onboard.js: remove redundant fs/os requires (already imported
at module level)
- docs/_ext/search_assets/modules/SearchPageManager.js: remove unused
audienceOptions and difficultyOptions (never wired into template)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: resolve lint errors from main merge
- Fix duplicate imports in onboard.test.js
- Remove unused imports (createSandbox, pruneStaleSandboxEntry, runCaptureOpenshell)
- Add JSDoc type annotation for err.code in preflight.js probe
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: apply eslint autofix to security test regex
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: remove dead functions pythonLiteralJson and validateAnthropicSelection
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: add @eslint/js as dev dependency
The root eslint.config.mjs imports @eslint/js but it was missing from
package.json, causing the eslint-js pre-push hook to fail.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: Aaron Erickson 🦞 <aerickson@nvidia.com>
19 lines
499 B
JSON
19 lines
499 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2022",
|
|
"module": "ES2022",
|
|
"moduleResolution": "bundler",
|
|
"checkJs": true,
|
|
"allowJs": true,
|
|
"maxNodeModuleJsDepth": 0,
|
|
"noEmit": true,
|
|
"resolveJsonModule": true,
|
|
"esModuleInterop": true,
|
|
"skipLibCheck": true,
|
|
"strict": false,
|
|
"noImplicitAny": false,
|
|
"types": ["node"]
|
|
},
|
|
"include": ["bin/**/*.js", "scripts/**/*.js", "test/**/*.js"],
|
|
"exclude": ["node_modules", "**/node_modules", "nemoclaw", "docs"]
|
|
}
|