mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
feat(frontend): Replace ESLint with OXC hybrid linting architecture (#35506)
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -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',
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user