Skip to content

Commit 2356f55

Browse files
committed
chore: update ESLint config
1 parent aec1440 commit 2356f55

File tree

11 files changed

+31
-40
lines changed

11 files changed

+31
-40
lines changed

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,18 @@
3838
"@storybook/addon-links": "^9.0.8",
3939
"@storybook/react-vite": "^9.0.8",
4040
"@types/react": "^18.3.11",
41-
"eslint": "^9.12.0",
42-
"eslint-config-zakodium": "^13.0.0",
41+
"eslint": "^9.28.0",
42+
"eslint-config-zakodium": "^15.0.1",
4343
"eslint-plugin-storybook": "^9.0.8",
44-
"prettier": "^3.3.3",
44+
"prettier": "^3.5.3",
4545
"react": "^18.3.1",
4646
"react-dom": "^18.3.1",
4747
"rimraf": "^6.0.1",
4848
"storybook": "^9.0.8",
49-
"typescript": "^5.6.3"
49+
"typescript": "^5.8.3"
5050
},
5151
"dependencies": {
52-
"@types/d3-scale": "^4.0.8",
52+
"@types/d3-scale": "^4.0.9",
5353
"d3-scale": "^4.0.2"
5454
},
5555
"volta": {

src/components/AlignGroup.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { type CSSProperties, type ReactNode, useMemo } from 'react';
1+
import type { CSSProperties, ReactNode } from 'react';
2+
import { useMemo } from 'react';
23

34
import { useBBoxObserver } from '../hooks/useBBoxObserver.js';
45

src/hooks/useBBoxObserver.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { type RefCallback, useCallback, useRef, useState } from 'react';
1+
import type { RefCallback } from 'react';
2+
import { useCallback, useRef, useState } from 'react';
23

34
const initialSize = { x: 0, y: 0, width: 0, height: 0 };
45

src/hooks/useLinearPrimaryTicks.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import type { ScaleContinuousNumeric } from 'd3-scale';
2-
import { type MutableRefObject, useState } from 'react';
2+
import type { MutableRefObject } from 'react';
3+
import { useState } from 'react';
34

4-
import { type Tick, useTicks } from './useTicks.js';
5+
import type { Tick } from './useTicks.js';
6+
import { useTicks } from './useTicks.js';
57

68
type Directions = 'horizontal' | 'vertical';
79

src/hooks/useLogTicks.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
import type { ScaleContinuousNumeric } from 'd3-scale';
2-
import {
3-
type MutableRefObject,
4-
useCallback,
5-
useEffect,
6-
useMemo,
7-
useState,
8-
} from 'react';
2+
import type { MutableRefObject } from 'react';
3+
import { useCallback, useEffect, useMemo, useState } from 'react';
94

105
import { textDimensions } from '../utils.js';
116

src/hooks/useTicks.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
import type { ScaleContinuousNumeric, ScaleTime } from 'd3-scale';
2-
import {
3-
type Dispatch,
4-
type MutableRefObject,
5-
type SetStateAction,
6-
useEffect,
7-
} from 'react';
2+
import type { Dispatch, MutableRefObject, SetStateAction } from 'react';
3+
import { useEffect } from 'react';
84

95
import { textDimensions } from '../utils.js';
106

src/hooks/useTimeTicks.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import type { ScaleTime } from 'd3-scale';
2-
import { type MutableRefObject, useState } from 'react';
2+
import type { MutableRefObject } from 'react';
3+
import { useState } from 'react';
34

4-
import { type Tick, useTicks } from './useTicks.js';
5+
import type { Tick } from './useTicks.js';
6+
import { useTicks } from './useTicks.js';
57

68
type Directions = 'horizontal' | 'vertical';
79

stories/components/AlignGroup.stories.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
import type { Meta } from '@storybook/react-vite';
22
import { useEffect, useState } from 'react';
33

4-
import {
5-
AlignGroup,
6-
type AlignGroupProps,
7-
useBBoxObserver,
8-
} from '../../src/index.js';
4+
import type { AlignGroupProps } from '../../src/index.js';
5+
import { AlignGroup, useBBoxObserver } from '../../src/index.js';
96

107
const DEBUG_COLOR = 'yellow';
118

stories/components/ResponsiveChart.stories.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import type { Meta } from '@storybook/react-vite';
2-
import { type ReactNode, useEffect, useState } from 'react';
2+
import type { ReactNode } from 'react';
3+
import { useEffect, useState } from 'react';
34

4-
import { ResponsiveChart, type ResponsiveChartProps } from '../../src/index.js';
5+
import type { ResponsiveChartProps } from '../../src/index.js';
6+
import { ResponsiveChart } from '../../src/index.js';
57

68
export default {
79
title: 'components/ResponsiveChart',

stories/hooks/TestAxis.tsx

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
1-
import {
2-
type ScaleLinear,
3-
scaleLinear,
4-
scaleLog,
5-
type ScaleLogarithmic,
6-
type ScaleTime,
7-
scaleTime,
8-
} from 'd3-scale';
1+
import type { ScaleLinear, ScaleLogarithmic, ScaleTime } from 'd3-scale';
2+
import { scaleLinear, scaleLog, scaleTime } from 'd3-scale';
93
import React, { forwardRef, useEffect, useMemo, useRef, useState } from 'react';
104

115
import {

0 commit comments

Comments
 (0)