Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
🚨 Exempt tests from the raw datetime formatting lint rule (#2544)
Luke Vella0464f51c59e0
diff --git a/biome-plugins/no-raw-datetime-formatting.grit b/biome-plugins/no-raw-datetime-formatting.gritindex 4bcd9a25e..3d691073c 100644--- a/biome-plugins/no-raw-datetime-formatting.grit+++ b/biome-plugins/no-raw-datetime-formatting.grit@@ -1,8 +1,10 @@// Datetime formatting must go through lib/datetime so locale, timezone,// and hour-cycle preferences are applied consistently (RAL-1244).// The allowlist below is the escape hatch: lib/datetime itself, zone-// detection (timezone-schema), zone abbreviations (timezone-utils), and-// files still pending migration. Shrink it as RAL-1247 proceeds.+// detection (timezone-schema), zone abbreviations (timezone-utils), tests+// (which format independently of the app to act as an oracle, matching the+// tests exemption in the biome.json overrides), and files still pending+// migration. Shrink it as RAL-1247 proceeds.language jsor {@@ -16,7 +18,8 @@ or {r".*/src/lib/datetime/.*",r".*/src/utils/timezone-schema\.ts",r".*/src/components/time-zone-picker/timezone-utils\.ts",- r".*/src/components/poll/manage-poll/use-csv-exporter\.ts"+ r".*/src/components/poll/manage-poll/use-csv-exporter\.ts",+ r".*/tests/.*"},register_diagnostic(span=$match, message="Do not format dates inline. Use the formatters in `@/lib/datetime` so locale, timezone, and hour-cycle preferences are applied consistently.")}