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
..
2026-05-31 01:41:23 -07:00
2026-06-09 10:43:04 -07:00
2026-06-22 19:13:32 -07:00
2026-06-10 01:22:11 -07:00
2026-06-09 15:59:17 -07:00
2026-06-29 23:37:30 -07:00
2026-05-30 16:33:09 -07:00
2026-06-29 23:37:30 -07:00
2026-06-29 23:37:30 -07:00
2026-05-20 10:38:23 -07:00
2026-06-03 16:59:02 -04:00
2026-06-22 19:13:32 -07:00
2026-06-07 11:27:07 -07:00
2026-06-09 15:59:17 -07:00
2026-06-22 19:13:32 -07:00
2026-06-29 23:37:30 -07:00
2026-06-29 23:37:30 -07:00
2026-06-07 17:49:01 -07:00
2026-06-07 17:49:01 -07:00
2026-06-01 02:42:53 -07:00
2026-06-01 02:42:53 -07:00
2026-06-02 11:49:00 -07:00
2026-06-28 22:58:27 -07:00
2026-05-30 19:32:24 -07:00
2026-05-30 19:32:24 -07:00
2026-06-29 23:37:30 -07:00
2026-05-31 17:35:15 -07:00
2026-06-05 01:15:54 -07:00
2026-06-28 21:16:02 -07:00
2026-06-15 12:56:22 -07:00
2026-06-29 23:37:30 -07:00
2026-06-29 23:37:30 -07:00
2026-05-30 13:26:48 -07:00
2026-06-03 23:42:33 -07:00
2026-06-04 16:11:51 -04:00
2026-06-03 12:48:00 -07:00
2026-06-28 19:43:18 -07:00
2026-06-28 19:43:18 -07:00
2026-06-28 19:43:18 -07:00
2026-06-18 21:26:12 -07:00
2026-06-19 15:52:05 -07:00
2026-06-17 15:14:35 -07:00
2026-06-17 19:21:42 -07:00
2026-06-19 15:52:05 -07:00
2026-06-21 21:23:36 -07:00
2026-06-22 15:15:03 -07:00
2026-06-29 23:37:30 -07:00
2026-06-19 15:52:05 -07:00
2026-06-09 15:59:17 -07:00
2026-06-09 15:59:17 -07:00
2026-06-19 17:14:55 -07:00
2026-06-29 11:56:26 -07:00
2026-06-17 15:14:35 -07:00
2026-06-17 15:14:35 -07:00
2026-06-19 15:52:05 -07:00
2026-06-29 11:56:26 -07:00
2026-06-10 19:24:16 -07:00
2026-06-17 15:14:35 -07:00
2026-06-29 11:56:26 -07:00
2026-06-19 15:52:05 -07:00
2026-06-16 10:41:50 -07:00
2026-06-17 15:14:35 -07:00
2026-06-09 15:59:17 -07:00
2026-06-16 10:41:50 -07:00
2026-06-10 13:38:51 -07:00
2026-06-02 21:15:00 -07:00
2026-05-28 20:41:10 -04:00
2026-06-28 21:19:10 -07:00
2026-06-28 23:40:55 -07:00
2026-06-22 01:07:16 -07:00
2026-06-22 01:07:16 -07:00
2026-06-29 23:37:30 -07:00
2026-05-15 05:44:25 -04:00
2026-06-17 16:08:14 -07:00
2026-06-29 23:37:30 -07:00
2026-06-29 23:37:30 -07:00
2026-06-29 23:37:30 -07:00
2026-06-29 23:37:30 -07:00
2026-05-30 13:09:17 -07:00
2026-05-30 21:46:13 -07:00
2026-05-30 21:46:13 -07:00
2026-05-31 17:35:15 -07:00
2026-06-17 16:08:14 -07:00
2026-05-30 21:46:13 -07:00
2026-05-30 21:46:13 -07:00
2026-06-10 01:22:11 -07:00
2026-06-22 01:07:16 -07:00
2026-06-29 23:37:30 -07:00
2026-06-29 23:37:30 -07:00
2026-06-29 23:37:30 -07:00
2026-05-16 17:44:42 -04:00
2026-06-22 16:42:20 -07:00
2026-06-07 04:15:26 -07:00
2026-06-07 11:01:02 -07:00
2026-06-29 23:37:30 -07:00
2026-06-07 12:05:41 -07:00
2026-06-22 01:07:16 -07:00
2026-06-28 23:41:14 -07:00
2026-05-30 20:18:49 -07:00
2026-06-22 19:13:32 -07:00
2026-06-22 19:13:32 -07:00
2026-06-29 22:38:29 -07:00
2026-06-22 19:13:32 -07:00
2026-06-22 19:13:32 -07:00
2026-06-29 23:37:30 -07:00
2026-06-29 23:37:30 -07:00
2026-06-29 23:37:30 -07:00
2026-06-28 22:58:27 -07:00
2026-06-28 22:58:27 -07:00
2026-06-07 17:49:01 -07:00
2026-06-28 19:43:18 -07:00
2026-06-10 11:13:01 -07:00
2026-06-10 11:13:01 -07:00
2026-06-29 23:37:30 -07:00
2026-04-09 12:28:52 -07:00
2026-06-22 01:07:16 -07:00
2026-06-22 01:07:16 -07:00
2026-06-29 23:37:30 -07:00
2026-06-29 22:38:29 -07:00
2026-06-09 10:43:04 -07:00