Skip to content

Commit 4abf7f7

Browse files
committed
lint fix - mostly for import type changes
1 parent fb8bb3f commit 4abf7f7

File tree

400 files changed

+1004
-830
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

400 files changed

+1004
-830
lines changed

packages/visx-annotation/src/components/Annotation.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { useMemo } from 'react';
22
import AnnotationContext from '../context/AnnotationContext';
3-
import { AnnotationContextType } from '../types';
3+
import type { AnnotationContextType } from '../types';
44

55
export type AnnotationProps = Pick<AnnotationContextType, 'x' | 'y' | 'dx' | 'dy'> & {
66
/** Annotation children (Subject, Label, Connector) */

packages/visx-annotation/src/components/CircleSubject.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { useContext } from 'react';
22
import cx from 'classnames';
3-
import { AnnotationContextType } from '../types';
3+
import type { AnnotationContextType } from '../types';
44
import AnnotationContext from '../context/AnnotationContext';
55

66
export type CircleSubjectProps = Pick<AnnotationContextType, 'x' | 'y'> & {

packages/visx-annotation/src/components/Connector.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { useContext } from 'react';
22
import cx from 'classnames';
3-
import { AnnotationContextType } from '../types';
3+
import type { AnnotationContextType } from '../types';
44
import AnnotationContext from '../context/AnnotationContext';
55

66
// @TODO

packages/visx-annotation/src/components/EditableAnnotation.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
/* eslint-disable react/jsx-handler-names */
22
import React, { useCallback, useRef } from 'react';
3-
import useDrag, { UseDrag, HandlerArgs as DragHandlerArgs } from '@visx/drag/lib/useDrag';
4-
import { AnnotationContextType } from '../types';
3+
import type { UseDrag, HandlerArgs as DragHandlerArgs } from '@visx/drag/lib/useDrag';
4+
import useDrag from '@visx/drag/lib/useDrag';
5+
import type { AnnotationContextType } from '../types';
56
import Annotation from './Annotation';
67

78
export type EditableAnnotationProps = Pick<AnnotationContextType, 'x' | 'y' | 'dx' | 'dy'> & {

packages/visx-annotation/src/components/HtmlLabel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import useMeasure from 'react-use-measure';
44
import { Group } from '@visx/group';
55
import AnnotationContext from '../context/AnnotationContext';
66
import AnchorLine from './LabelAnchorLine';
7-
import { LabelProps } from './Label';
7+
import type { LabelProps } from './Label';
88

99
const wrapperStyle = { display: 'inline-block' };
1010

packages/visx-annotation/src/components/Label.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import React, { useContext, useMemo } from 'react';
22
import cx from 'classnames';
33
import { Group } from '@visx/group';
4-
import { Text, TextProps, useText } from '@visx/text';
5-
import useMeasure, { Options as UseMeasureOptions } from 'react-use-measure';
4+
import type { TextProps } from '@visx/text';
5+
import { Text, useText } from '@visx/text';
6+
import type { Options as UseMeasureOptions } from 'react-use-measure';
7+
import useMeasure from 'react-use-measure';
68
import AnnotationContext from '../context/AnnotationContext';
79
import AnchorLine from './LabelAnchorLine';
810

packages/visx-annotation/src/components/LabelAnchorLine.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import { TextProps } from '@visx/text';
2+
import type { TextProps } from '@visx/text';
33

44
interface AnchorLineProps {
55
anchorLineOrientation: 'horizontal' | 'vertical';

packages/visx-annotation/src/context/AnnotationContext.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { createContext } from 'react';
2-
import { AnnotationContextType } from '../types';
2+
import type { AnnotationContextType } from '../types';
33

44
const AnnotationContext = createContext<AnnotationContextType>({});
55

packages/visx-axis/src/axis/Axis.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ import React from 'react';
22
import cx from 'classnames';
33
import { Group } from '@visx/group';
44
import { getTicks, coerceNumber } from '@visx/scale';
5-
import { SharedAxisProps, AxisScale } from '../types';
5+
import type { SharedAxisProps, AxisScale } from '../types';
66
import AxisRenderer from './AxisRenderer';
77
import getTickPosition from '../utils/getTickPosition';
88
import getTickFormatter from '../utils/getTickFormatter';
99
import createPoint from '../utils/createPoint';
10-
import Orientation, { OrientationType } from '../constants/orientation';
10+
import type { OrientationType } from '../constants/orientation';
11+
import Orientation from '../constants/orientation';
1112
import getAxisRangePaddingConfig from '../utils/getAxisRangePaddingConfig';
1213

1314
export type AxisProps<Scale extends AxisScale> = SharedAxisProps<Scale> & {

packages/visx-axis/src/axis/AxisBottom.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import cx from 'classnames';
33
import Axis from './Axis';
44
import Orientation from '../constants/orientation';
5-
import { SharedAxisProps, AxisScale } from '../types';
5+
import type { SharedAxisProps, AxisScale } from '../types';
66

77
export const bottomTickLabelProps = {
88
dy: '0.25em',

0 commit comments

Comments
 (0)