mirror of
https://github.com/apache/superset.git
synced 2026-05-21 15:55:10 +00:00
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) <noreply@anthropic.com>
This commit is contained in:
@@ -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<T>(value: T, options: NormalizeOptions): T {
|
||||
export function normalizeBackendUrls<T>(
|
||||
value: T,
|
||||
options: NormalizeOptions,
|
||||
): T {
|
||||
throw new Error(NOT_IMPLEMENTED);
|
||||
}
|
||||
|
||||
|
||||
@@ -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');
|
||||
});
|
||||
|
||||
|
||||
@@ -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'];
|
||||
|
||||
Reference in New Issue
Block a user