orca/config
Neil f9e18910ae
chore(lint): adopt unicorn/prefer-import-meta-properties (error) (#6847)
Migrate fileURLToPath(import.meta.url) / dirname(...) boilerplate to the
native import.meta.dirname / import.meta.filename, then enable the rule
at error so new code stays on the native form.

The oxlint autofix rewrites the expression but leaves the now-unused
node:url / node:path imports behind (which the already-enabled
no-unused-vars=error would then flag), so this commit also removes those
34 orphaned imports — trimming the named import where other names are
still used, deleting the line where it was the sole import.

Scope is build scripts + Node-env tests only (config/scripts, tools/
benchmarks, *.test.{ts,mjs}, vitest configs); zero shipped runtime code.
The native properties are exact equivalents (Node >= 20.11; repo is on
24), so behavior is unchanged.

Verified: oxlint 0 errors tree-wide (root + mobile), oxfmt clean,
typecheck (node+cli+web) + mobile tsc pass, root vitest 22825 passed /
0 failed, mobile vitest 1018 passed. Exercised the rewritten scripts
directly: build:relay (6 targets), ensure-native-runtime,
verify-macos-entitlements all run correctly with import.meta.dirname.
2026-06-29 23:37:30 -07:00
..
patches Update xterm beta packages (#6486) 2026-06-27 02:37:23 -07:00
scripts chore(lint): adopt unicorn/prefer-import-meta-properties (error) (#6847) 2026-06-29 23:37:30 -07:00
dev-app-update.yml
electron-builder.config.cjs fix: pin CLI build output to CommonJS (#6656) 2026-06-28 22:58:27 -07:00
localization-audit.md Improve localization catalog sync workflow (#5110) 2026-06-10 11:13:01 -07:00
localization-coverage-allowlist.json Add English localization infrastructure (#4995) 2026-06-09 10:43:04 -07:00
oxlint-react-doctor.json chore: gate high-signal react doctor rules 2026-05-31 22:35:15 -07:00
oxlint-switch-exhaustiveness.json chore: enforce exhaustive switch handling 2026-05-30 13:18:12 -07:00
packaged-runtime-node-modules.cjs feat(devin): managed hooks, sleeping resume, AI Vault (#5380) 2026-06-17 20:49:29 -07:00
tsconfig.cli.json refactor(command-code): split managed hook script (#6807) 2026-06-29 18:13:45 -07:00
tsconfig.node.json feat(telemetry): PR 2 — transport (client, validator, burst cap, IPC, build gate) (#1374) 2026-05-03 16:51:31 -07:00
tsconfig.relay.json Support agent status hooks over SSH (#1865) 2026-05-14 16:06:23 -07:00
tsconfig.tc.cli.json
tsconfig.tc.web.json Show and Filter Automation-Created Workspaces (#5697) 2026-06-18 13:05:57 -07:00
tsconfig.web.json chore: enforce exhaustive switch handling 2026-05-30 13:18:12 -07:00
vitest.config.ts chore(lint): upgrade oxlint to 1.71 + enable 7 new rules (autofixed backlog) (#6841) 2026-06-29 22:38:29 -07:00