From 5d7ac96a59d2732cc9f48b99ce4764ae73ff87bb Mon Sep 17 00:00:00 2001 From: Joe Li Date: Wed, 6 May 2026 18:11:37 -0700 Subject: [PATCH] style: apply prettier line-wrapping in skeleton modules Pure formatting follow-up to 13f56f710e. No behaviour change. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../src/connection/normalizeBackendUrls.ts | 15 ++++++++++++--- .../test/connection/normalizeBackendUrls.test.ts | 4 +++- .../spec/helpers/sourceTreeScanner.ts | 7 ++++++- 3 files changed, 21 insertions(+), 5 deletions(-) diff --git a/superset-frontend/packages/superset-ui-core/src/connection/normalizeBackendUrls.ts b/superset-frontend/packages/superset-ui-core/src/connection/normalizeBackendUrls.ts index 23499597800..ccea6be71d9 100644 --- a/superset-frontend/packages/superset-ui-core/src/connection/normalizeBackendUrls.ts +++ b/superset-frontend/packages/superset-ui-core/src/connection/normalizeBackendUrls.ts @@ -85,10 +85,16 @@ export const NORMALIZER_EXCLUSIONS: ReadonlyArray<{ { field: 'bug_report_url', reason: 'External (GitHub)' }, { field: 'documentation_url', reason: 'External (docs site)' }, { field: 'external_url', reason: 'External by name' }, - { field: 'bundle_url', reason: 'CDN / static asset host, not a Superset route' }, + { + field: 'bundle_url', + reason: 'CDN / static asset host, not a Superset route', + }, { field: 'tracking_url', reason: 'External (analytics)' }, { field: 'user_login_url', reason: 'OAuth / SSO endpoints, may be external' }, - { field: 'user_logout_url', reason: 'OAuth / SSO endpoints, may be external' }, + { + field: 'user_logout_url', + reason: 'OAuth / SSO endpoints, may be external', + }, { field: 'user_info_url', reason: 'OAuth / SSO endpoints, may be external' }, { field: 'thumbnail_url', @@ -116,7 +122,10 @@ export interface NormalizeOptions { * the input by reference so consumers can compare with `===`. */ // eslint-disable-next-line @typescript-eslint/no-unused-vars -- stub -export function normalizeBackendUrls(value: T, options: NormalizeOptions): T { +export function normalizeBackendUrls( + value: T, + options: NormalizeOptions, +): T { throw new Error(NOT_IMPLEMENTED); } diff --git a/superset-frontend/packages/superset-ui-core/test/connection/normalizeBackendUrls.test.ts b/superset-frontend/packages/superset-ui-core/test/connection/normalizeBackendUrls.test.ts index ee074153241..c55af710d33 100644 --- a/superset-frontend/packages/superset-ui-core/test/connection/normalizeBackendUrls.test.ts +++ b/superset-frontend/packages/superset-ui-core/test/connection/normalizeBackendUrls.test.ts @@ -94,7 +94,9 @@ describe('normalizeBackendUrls (Layer 3 — negative passthrough)', () => { describe('normalizeBackendUrlString (Layer 3 — string-level entry point)', () => { test('strips application root from a router-relative path', () => { expect( - normalizeBackendUrlString('/superset/sqllab', { applicationRoot: PREFIX }), + normalizeBackendUrlString('/superset/sqllab', { + applicationRoot: PREFIX, + }), ).toBe('/sqllab'); }); diff --git a/superset-frontend/spec/helpers/sourceTreeScanner.ts b/superset-frontend/spec/helpers/sourceTreeScanner.ts index a2f8a49a0b4..ebc143d8ed5 100644 --- a/superset-frontend/spec/helpers/sourceTreeScanner.ts +++ b/superset-frontend/spec/helpers/sourceTreeScanner.ts @@ -44,7 +44,12 @@ const ALWAYS_SKIP_SEGMENTS = new Set([ * Filename suffixes that legitimately mention otherwise-banned helpers (tests * import them, stories embed them) and should not be scanned for invariants. */ -const ALWAYS_SKIP_SUFFIXES = ['.test.ts', '.test.tsx', '.stories.ts', '.stories.tsx']; +const ALWAYS_SKIP_SUFFIXES = [ + '.test.ts', + '.test.tsx', + '.stories.ts', + '.stories.tsx', +]; /** Extensions considered source files. */ const SOURCE_EXTENSIONS = ['.ts', '.tsx'];