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

@@ -70,6 +70,8 @@ export interface CreateDragGraphicOptions {
onHeightDrag: (...args: any[]) => any;
barWidth: number;
chart: any;
fillColor?: string;
strokeColor?: string;
}
export interface CreateDragGraphicOption {
@@ -80,6 +82,8 @@ export interface CreateDragGraphicOption {
barWidth: number;
chart: any;
add: boolean;
fillColor?: string;
strokeColor?: string;
}
export interface GetDragGraphicPositionOptions {

View File

@@ -76,6 +76,8 @@ export const createDragGraphicOption = ({
barWidth,
chart,
add,
fillColor = 'white',
strokeColor = 'gray',
}: CreateDragGraphicOption) => {
const position = getDragGraphicPosition({
chart,
@@ -95,10 +97,8 @@ export const createDragGraphicOption = ({
y: position[1],
invisible: false,
style: {
// eslint-disable-next-line theme-colors/no-literal-colors
fill: '#ffffff',
// eslint-disable-next-line theme-colors/no-literal-colors
stroke: '#aaa',
fill: fillColor,
stroke: strokeColor,
},
cursor: 'ew-resize',
draggable: 'horizontal',
@@ -129,6 +129,8 @@ export const createDragGraphicOptions = ({
onHeightDrag,
barWidth,
chart,
fillColor,
strokeColor,
}: CreateDragGraphicOptions) => {
const graphics: any[] = [];
data.forEach((dataItem: number[], dataIndex: number) => {
@@ -140,6 +142,8 @@ export const createDragGraphicOptions = ({
dataItemIndex: 0,
onDrag: onWidthDrag,
add: false,
fillColor,
strokeColor,
});
graphics.push(widthGraphic);
const heightGraphic = createDragGraphicOption({
@@ -150,6 +154,8 @@ export const createDragGraphicOptions = ({
dataItemIndex: 1,
onDrag: onHeightDrag,
add: true,
fillColor,
strokeColor,
});
graphics.push(heightGraphic);
});