Skip to content

Commit aae29aa

Browse files
authored
Merge pull request #47 from DouglasNeuroInformatics/dev
chore: update eslint config
2 parents 34ca067 + 60013db commit aae29aa

32 files changed

+2896
-3987
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
"devDependencies": {
115115
"@commitlint/cli": "^19.5.0",
116116
"@commitlint/config-conventional": "^19.5.0",
117-
"@douglasneuroinformatics/eslint-config": "^5.2.1",
117+
"@douglasneuroinformatics/eslint-config": "^5.2.4",
118118
"@douglasneuroinformatics/prettier-config": "^0.0.1",
119119
"@douglasneuroinformatics/semantic-release": "^0.0.1",
120120
"@douglasneuroinformatics/tsconfig": "^1.0.2",
@@ -140,7 +140,7 @@
140140
"@vitejs/plugin-react-swc": "^3.7.1",
141141
"@vitest/coverage-v8": "^2.1.2",
142142
"autoprefixer": "^10.4.20",
143-
"eslint": "^9.12.0",
143+
"eslint": "^9.19.0",
144144
"happy-dom": "^14.12.0",
145145
"husky": "^9.1.6",
146146
"jsdom": "25.0.1",

pnpm-lock.yaml

Lines changed: 2811 additions & 3903 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/ArrowToggle/ArrowToggle.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { cn } from '@/utils';
99
import { Button, type ButtonProps } from '../Button';
1010

1111
export type ArrowToggleProps = Simplify<
12-
{
12+
React.HTMLAttributes<HTMLButtonElement> & {
1313
/** Whether or not the arrow is currently toggled */
1414
isToggled?: boolean;
1515

@@ -23,7 +23,7 @@ export type ArrowToggleProps = Simplify<
2323

2424
/** The variant of button to use */
2525
variant?: Extract<ButtonProps['variant'], 'ghost' | 'outline'>;
26-
} & React.HTMLAttributes<HTMLButtonElement>
26+
}
2727
>;
2828

2929
export const ArrowToggle = React.forwardRef<HTMLButtonElement, ArrowToggleProps>(function ArrowToggle(

src/components/Breadcrumb/BreadcrumbLink.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import { cn } from '@/utils';
66

77
export const BreadcrumbLink = forwardRef<
88
HTMLAnchorElement,
9-
{
9+
React.ComponentPropsWithoutRef<'a'> & {
1010
asChild?: boolean;
11-
} & React.ComponentPropsWithoutRef<'a'>
11+
}
1212
>(function BreadcrumbLink({ asChild, className, ...props }, ref) {
1313
const Comp = asChild ? Slot : 'a';
1414
return <Comp className={cn('transition-colors hover:text-foreground', className)} ref={ref} {...props} />;

src/components/Breadcrumb/BreadcrumbRoot.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import { forwardRef } from 'react';
22

33
export const BreadcrumbRoot = forwardRef<
44
HTMLElement,
5-
{
5+
React.ComponentPropsWithoutRef<'nav'> & {
66
separator?: React.ReactNode;
7-
} & React.ComponentPropsWithoutRef<'nav'>
7+
}
88
>(function BreadcrumbRoot({ ...props }, ref) {
99
return <nav aria-label="breadcrumb" ref={ref} {...props} />;
1010
});

src/components/Button/Button.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ export const buttonVariants = cva(
3939
);
4040

4141
export type ButtonProps = Simplify<
42-
{
43-
asChild?: boolean;
44-
/** @deprecated - use children */
45-
label?: string;
46-
} & React.ButtonHTMLAttributes<HTMLButtonElement> &
47-
VariantProps<typeof buttonVariants>
42+
React.ButtonHTMLAttributes<HTMLButtonElement> &
43+
VariantProps<typeof buttonVariants> & {
44+
asChild?: boolean;
45+
/** @deprecated - use children */
46+
label?: string;
47+
}
4848
>;
4949

5050
export const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(function Button(

src/components/Chart/ChartContainer.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ import type { ChartConfig } from './types';
1111

1212
export const ChartContainer = forwardRef<
1313
HTMLDivElement,
14-
{
14+
React.ComponentProps<'div'> & {
1515
children: React.ComponentProps<typeof ResponsiveContainer>['children'];
1616
config: ChartConfig;
17-
} & React.ComponentProps<'div'>
17+
}
1818
>(function ChartContainer({ children, className, config, id, ...props }, ref) {
1919
const uniqueId = useId();
2020
const chartId = `chart-${id ?? uniqueId.replace(/:/g, '')}`;

src/components/Chart/ChartLegendContent.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ import { getPayloadConfigFromPayload } from './utils';
99

1010
export const ChartLegendContent = forwardRef<
1111
HTMLDivElement,
12-
{
13-
hideIcon?: boolean;
14-
nameKey?: string;
15-
} & Pick<LegendProps, 'payload' | 'verticalAlign'> &
16-
React.ComponentProps<'div'>
12+
Pick<LegendProps, 'payload' | 'verticalAlign'> &
13+
React.ComponentProps<'div'> & {
14+
hideIcon?: boolean;
15+
nameKey?: string;
16+
}
1717
>(function ChartLegendContent({ className, hideIcon = false, nameKey, payload, verticalAlign = 'bottom' }, ref) {
1818
const { config } = useChart();
1919

src/components/Chart/ChartTooltipContent.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ import { getPayloadConfigFromPayload } from './utils';
99

1010
export const ChartTooltipContent = forwardRef<
1111
HTMLDivElement,
12-
{
13-
hideIndicator?: boolean;
14-
hideLabel?: boolean;
15-
indicator?: 'dashed' | 'dot' | 'line';
16-
labelKey?: string;
17-
nameKey?: string;
18-
} & React.ComponentProps<'div'> &
19-
React.ComponentProps<typeof Tooltip>
12+
React.ComponentProps<'div'> &
13+
React.ComponentProps<typeof Tooltip> & {
14+
hideIndicator?: boolean;
15+
hideLabel?: boolean;
16+
indicator?: 'dashed' | 'dot' | 'line';
17+
labelKey?: string;
18+
nameKey?: string;
19+
}
2020
>(function ChartLegendContent(
2121
{
2222
active,

src/components/ContextMenu/ContextMenuItem.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import { cn } from '@/utils';
66

77
export const ContextMenuItem = forwardRef<
88
React.ElementRef<typeof ContextMenuPrimitive.Item>,
9-
{
9+
React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Item> & {
1010
inset?: boolean;
11-
} & React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Item>
11+
}
1212
>(function ContextMenuItem({ className, inset, ...props }, ref) {
1313
return (
1414
<ContextMenuPrimitive.Item

0 commit comments

Comments
 (0)