CI: fix lint, format, and unary-minus failures #2

Merged
Mark merged 2 commits from fix/ci-t_5228b539 into dev 2026-09-12 16:43:29 +00:00
Owner

Fixes CI failures from security sweep commit 47e9024f.

Three jobs were failing on dev:

  • lint:report: 'new Function()' in N00dles.ts triggered @typescript-eslint/no-implied-eval (Easter egg obfuscation). Suppress per-line.
  • format:report: src/utils/helpers/safeMathEval.ts missing trailing newline at EOF.
  • test: convertAmountString threw 'Unexpected token: -' because safeMathEval's parseFactor did not handle unary minus. When MAX/PROD/INV is substituted with a negative number, the result starts with '-'.

Verified locally: lint:report OK, format:report OK, jest 4397/4397 passing.

Fixes CI failures from security sweep commit 47e9024f. Three jobs were failing on dev: - lint:report: 'new Function()' in N00dles.ts triggered @typescript-eslint/no-implied-eval (Easter egg obfuscation). Suppress per-line. - format:report: src/utils/helpers/safeMathEval.ts missing trailing newline at EOF. - test: convertAmountString threw 'Unexpected token: -' because safeMathEval's parseFactor did not handle unary minus. When MAX/PROD/INV is substituted with a negative number, the result starts with '-'. Verified locally: lint:report OK, format:report OK, jest 4397/4397 passing.
ci: fix lint, format, and unary-minus parsing failures
Some checks failed
CI / Prettier (pull_request) Successful in 1m38s
CI / Test (pull_request) Failing after 3m36s
CI / Build (pull_request) Successful in 5m46s
CI / Check docs (pull_request) Successful in 1m18s
CI / Lint (pull_request) Failing after 14m32s
Validate Title and Check for Dist Changes / Check Files and Title (pull_request) Failing after 54s
e07ec35772
Three CI jobs were failing on the security sweep commit (47e9024f):
- lint:report: 'new Function()' triggered @typescript-eslint/no-implied-eval
  in src/utils/helpers/N00dles.ts (Easter egg used Function as a
  stand-in for eval, which eslint still flags). Suppress per-line.
- format:report: src/utils/helpers/safeMathEval.ts was missing a
  trailing newline at EOF.
- test: convertAmountString tests threw 'Unexpected token: -'
  because safeMathEval's parseFactor could not handle unary minus.
  When MAX/PROD/INV is substituted with a negative number, the
  resulting expression starts with '-'. Add sign-aware consume.

Verified locally with npm ci (Node 24), npm run lint:report,
npx prettier -c ., and npx jest (51 suites, 4397 tests passing).
Mark changed title from ci: fix lint/format/unary-minus failures to CI: fix lint, format, and unary-minus failures 2026-09-11 23:22:16 +00:00
ci: retrigger after fixing lint/format/unary-minus
Some checks failed
CI / Build (pull_request) Successful in 5m24s
CI / Prettier (pull_request) Successful in 1m27s
CI / Check docs (pull_request) Successful in 1m19s
Validate Title and Check for Dist Changes / Check Files and Title (pull_request) Failing after 25s
CI / Lint (pull_request) Successful in 4m38s
CI / Test (pull_request) Successful in 18m35s
51f5f1d9ba
Mark merged commit f322a2edad into dev 2026-09-12 16:43:29 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Mark/bitburner-src!2
No description provided.