feat(frontend): Replace ESLint with OXC hybrid linting architecture (#35506)

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Evan Rusackas
2025-10-30 09:26:21 -07:00
committed by GitHub
parent a5eb02d178
commit 8ccdf3b32b
121 changed files with 2243 additions and 755 deletions

View File

@@ -17,4 +17,17 @@
* under the License.
*/
export const ACCESSIBLE_COLOR_BOUNDS = ['#ca0020', '#0571b0'];
import { SupersetTheme } from '@superset-ui/core';
export const getAccessibleColorBounds = (theme: SupersetTheme): string[] => [
theme.colorError, // Red variant for negative/danger
theme.colorPrimary, // Blue variant for positive/primary
];
// Default fallback for backward compatibility
export const ACCESSIBLE_COLOR_BOUNDS = [
// eslint-disable-next-line theme-colors/no-literal-colors
'#ca0020',
// eslint-disable-next-line theme-colors/no-literal-colors
'#0571b0',
];