This is an automated email from the ASF dual-hosted git repository.

betodealmeida pushed a commit to branch sl-cache
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/sl-cache by this push:
     new 23889a8d270 Fix lint
23889a8d270 is described below

commit 23889a8d270fb261f29cdcc20aaf9d927a86def9
Author: Beto Dealmeida <[email protected]>
AuthorDate: Thu May 14 18:19:38 2026 -0400

    Fix lint
---
 superset-frontend/.eslintrc.js                                     | 2 +-
 .../src/components/CachedLabel/TooltipContent.test.tsx             | 4 +++-
 .../src/BigNumber/BigNumberWithTrendline/transformProps.test.ts    | 4 +---
 superset-frontend/src/dashboard/util/getDashboardUrl.test.ts       | 4 +++-
 .../components/ExploreChartPanel/ExploreChartPanel.test.tsx        | 6 +++++-
 .../src/explore/components/controls/CollectionControl/index.tsx    | 4 +++-
 superset-frontend/src/features/semanticLayers/jsonFormsHelpers.tsx | 4 +---
 superset-frontend/src/middleware/loggerMiddleware.ts               | 7 ++++++-
 8 files changed, 23 insertions(+), 12 deletions(-)

diff --git a/superset-frontend/.eslintrc.js b/superset-frontend/.eslintrc.js
index 002d3f39252..d7b72a6d93e 100644
--- a/superset-frontend/.eslintrc.js
+++ b/superset-frontend/.eslintrc.js
@@ -80,7 +80,7 @@ const restrictedImportsRules = {
   'no-jest-mock-console': {
     name: 'jest-mock-console',
     message: 'Please use native Jest spies, i.e. jest.spyOn(console, "warn")',
-  }
+  },
 };
 
 module.exports = {
diff --git 
a/superset-frontend/packages/superset-ui-core/src/components/CachedLabel/TooltipContent.test.tsx
 
b/superset-frontend/packages/superset-ui-core/src/components/CachedLabel/TooltipContent.test.tsx
index 2bc44409e44..22a537ed8b7 100644
--- 
a/superset-frontend/packages/superset-ui-core/src/components/CachedLabel/TooltipContent.test.tsx
+++ 
b/superset-frontend/packages/superset-ui-core/src/components/CachedLabel/TooltipContent.test.tsx
@@ -38,7 +38,9 @@ test('Rendering TooltipContent correctly - with timestep', () 
=> {
 });
 
 test('Rendering TooltipContent correctly - semantic cache', () => {
-  render(<TooltipContent cacheSource="semantic" cachedTimestamp="01-01-2000" 
/>);
+  render(
+    <TooltipContent cacheSource="semantic" cachedTimestamp="01-01-2000" />,
+  );
   expect(screen.getByTestId('tooltip-content')?.textContent).toBe(
     `Loaded from semantic smart cache ${extendedDayjs
       .utc('01-01-2000')
diff --git 
a/superset-frontend/plugins/plugin-chart-echarts/src/BigNumber/BigNumberWithTrendline/transformProps.test.ts
 
b/superset-frontend/plugins/plugin-chart-echarts/src/BigNumber/BigNumberWithTrendline/transformProps.test.ts
index 6ce84f5ffe4..6a9752d57b9 100644
--- 
a/superset-frontend/plugins/plugin-chart-echarts/src/BigNumber/BigNumberWithTrendline/transformProps.test.ts
+++ 
b/superset-frontend/plugins/plugin-chart-echarts/src/BigNumber/BigNumberWithTrendline/transformProps.test.ts
@@ -288,9 +288,7 @@ describe('BigNumberWithTrendline transformProps', () => {
       height: 300,
       queriesData: [
         {
-          data: [
-            { __timestamp: 1, value: 100 },
-          ] as unknown as BigNumberDatum[],
+          data: [{ __timestamp: 1, value: 100 }] as unknown as 
BigNumberDatum[],
           colnames: ['__timestamp', 'value'],
           coltypes: ['TEMPORAL', 'NUMERIC'],
         },
diff --git a/superset-frontend/src/dashboard/util/getDashboardUrl.test.ts 
b/superset-frontend/src/dashboard/util/getDashboardUrl.test.ts
index 530d6a8ed06..8d33bbf1b1d 100644
--- a/superset-frontend/src/dashboard/util/getDashboardUrl.test.ts
+++ b/superset-frontend/src/dashboard/util/getDashboardUrl.test.ts
@@ -122,7 +122,9 @@ describe('getChartIdsFromLayout', () => {
       hash: '',
       standalone: DashboardStandaloneMode.HideNav,
     });
-    
expect(url).toBe(`/dashboard/1/?standalone=${DashboardStandaloneMode.HideNav}`);
+    expect(url).toBe(
+      `/dashboard/1/?standalone=${DashboardStandaloneMode.HideNav}`,
+    );
   });
 
   test('should process native filters key', () => {
diff --git 
a/superset-frontend/src/explore/components/ExploreChartPanel/ExploreChartPanel.test.tsx
 
b/superset-frontend/src/explore/components/ExploreChartPanel/ExploreChartPanel.test.tsx
index 276d2f759c8..5e3474555da 100644
--- 
a/superset-frontend/src/explore/components/ExploreChartPanel/ExploreChartPanel.test.tsx
+++ 
b/superset-frontend/src/explore/components/ExploreChartPanel/ExploreChartPanel.test.tsx
@@ -173,7 +173,11 @@ describe('ChartContainer', () => {
       chart: {
         chartStatus: 'rendered',
         queriesResponse: [
-          { is_cached: false, semantic_cache_hit: true, queried_dttm: 
'2026-01-01' },
+          {
+            is_cached: false,
+            semantic_cache_hit: true,
+            queried_dttm: '2026-01-01',
+          },
         ],
       },
     });
diff --git 
a/superset-frontend/src/explore/components/controls/CollectionControl/index.tsx 
b/superset-frontend/src/explore/components/controls/CollectionControl/index.tsx
index 2b0e01b0129..1a0393577ad 100644
--- 
a/superset-frontend/src/explore/components/controls/CollectionControl/index.tsx
+++ 
b/superset-frontend/src/explore/components/controls/CollectionControl/index.tsx
@@ -188,7 +188,9 @@ function CollectionControl({
   // Two items can collide when keyAccessor returns falsy and the index
   // fallback is used — breaking dnd-kit reordering and React reconciliation.
   // Assign a stable nanoid per item ref when no key is available.
-  const generatedIdsRef = useRef<WeakMap<CollectionItem, string>>(new 
WeakMap());
+  const generatedIdsRef = useRef<WeakMap<CollectionItem, string>>(
+    new WeakMap(),
+  );
   const itemIds = useMemo(
     () =>
       value.map(item => {
diff --git a/superset-frontend/src/features/semanticLayers/jsonFormsHelpers.tsx 
b/superset-frontend/src/features/semanticLayers/jsonFormsHelpers.tsx
index 7368f61ceec..fd2c3cb8ac5 100644
--- a/superset-frontend/src/features/semanticLayers/jsonFormsHelpers.tsx
+++ b/superset-frontend/src/features/semanticLayers/jsonFormsHelpers.tsx
@@ -264,9 +264,7 @@ const enumNamesEntry = {
         const names = (s as Record<string, unknown>)['x-enumNames'];
         return Array.isArray(names) && (names as unknown[]).length > 0;
       }),
-      schemaMatches(
-        s => (s as Record<string, unknown>)?.type !== 'array',
-      ),
+      schemaMatches(s => (s as Record<string, unknown>)?.type !== 'array'),
     ),
   ),
   renderer: EnumNamesRenderer,
diff --git a/superset-frontend/src/middleware/loggerMiddleware.ts 
b/superset-frontend/src/middleware/loggerMiddleware.ts
index a41d96a53e6..3182bd18771 100644
--- a/superset-frontend/src/middleware/loggerMiddleware.ts
+++ b/superset-frontend/src/middleware/loggerMiddleware.ts
@@ -33,7 +33,12 @@ import { ensureAppRoot } from '../utils/pathUtils';
 import type { DashboardInfo, DashboardLayoutState } from '../dashboard/types';
 import type { QueryEditor } from '../SqlLab/types';
 
-type LogEventSource = 'dashboard' | 'embedded_dashboard' | 'explore' | 
'sqlLab' | 'slice';
+type LogEventSource =
+  | 'dashboard'
+  | 'embedded_dashboard'
+  | 'explore'
+  | 'sqlLab'
+  | 'slice';
 
 interface LogEventData {
   source?: LogEventSource;

Reply via email to