Skip to content

Commit f64f17d

Browse files
committed
fix/suppress eslint errors
1 parent c4d1f45 commit f64f17d

24 files changed

Lines changed: 49 additions & 30 deletions

File tree

.storybook/utils.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,6 @@ export function useFakeStream(initialValue = '', typingDelay = 10, startingDelay
9797
const [isTyping, setIsTyping] = useState(false); // actively typing characters
9898
const intervalRef = useRef<ReturnType<typeof setInterval> | null>(null);
9999
const timeoutRef = useRef<ReturnType<typeof setTimeout> | null>(null);
100-
const isProcessingRef = useRef(isProcessing);
101-
const isTypingRef = useRef(isTyping);
102-
isProcessingRef.current = isProcessing;
103-
isTypingRef.current = isTyping;
104100

105101
const startStream = ({ text, onComplete, onProcessingComplete }: StartStreamOptions) => {
106102
// Stop previous stream and timeout

packages/base/src/internal/hooks/useSyncRef.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ export function useSyncRef<RefType = never>(
2929
const localRef = useRef<RefType | null>(null);
3030

3131
const componentRef = useCallback(
32+
// callback ref forwards to external ref
33+
// eslint-disable-next-line react-hooks/immutability
3234
(node) => {
3335
if (ref) {
3436
if (typeof ref === 'function') {

packages/base/src/internal/wrapper/withWebComponent.cy.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,6 @@ describe('withWebComponent', () => {
198198
</Button>
199199
<Popover
200200
open={open}
201-
// eslint-disable-next-line react-hooks/refs
202201
opener={btnRef.current}
203202
onClose={() => {
204203
setOpen(false);

packages/charts/src/components/BarChart/BarChart.cy.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import { complexDataSet } from '../../resources/DemoProps.js';
2-
import { BarChart } from './index.js';
31
import {
42
cypressPassThroughTestsFactory,
53
testChartLegendConfig,
64
testChartZoomingTool,
75
testStackAggregateTotals,
86
} from '../../../../../cypress/support/utils';
7+
import { complexDataSet } from '../../resources/DemoProps.js';
8+
import { BarChart } from './index.js';
99

1010
const dimensions = [
1111
{

packages/charts/src/components/BulletChart/BulletChart.cy.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { complexDataSet } from '../../resources/DemoProps.js';
2-
import { BulletChart } from './index.js';
31
import {
42
cypressPassThroughTestsFactory,
53
testChartLegendConfig,
64
testChartZoomingTool,
75
} from '../../../../../cypress/support/utils';
6+
import { complexDataSet } from '../../resources/DemoProps.js';
7+
import { BulletChart } from './index.js';
88

99
const dimensions = [
1010
{

packages/charts/src/components/ColumnChart/ColumnChart.cy.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import { complexDataSet } from '../../resources/DemoProps.js';
2-
import { ColumnChart } from './index.js';
31
import {
42
cypressPassThroughTestsFactory,
53
testChartLegendConfig,
64
testChartZoomingTool,
75
testStackAggregateTotals,
86
} from '../../../../../cypress/support/utils';
7+
import { complexDataSet } from '../../resources/DemoProps.js';
8+
import { ColumnChart } from './index.js';
99

1010
const dimensions = [
1111
{

packages/charts/src/components/ColumnChartWithTrend/ColumnChartWithTrend.cy.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { complexDataSet } from '../../resources/DemoProps.js';
2-
import { ColumnChartWithTrend } from './index.js';
31
import {
42
cypressPassThroughTestsFactory,
53
testChartLegendConfig,
64
testChartZoomingTool,
75
} from '../../../../../cypress/support/utils';
6+
import { complexDataSet } from '../../resources/DemoProps.js';
7+
import { ColumnChartWithTrend } from './index.js';
88

99
const dimensions = [
1010
{

packages/charts/src/components/ComposedChart/ComposedChart.cy.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import { complexDataSet } from '../../resources/DemoProps.js';
2-
import { ComposedChart } from './index.js';
31
import {
42
cypressPassThroughTestsFactory,
53
testChartLegendConfig,
64
testChartZoomingTool,
75
testStackAggregateTotals,
86
} from '../../../../../cypress/support/utils';
7+
import { complexDataSet } from '../../resources/DemoProps.js';
8+
import { ComposedChart } from './index.js';
99

1010
const dimensions = [
1111
{

packages/charts/src/components/DonutChart/DonutChart.cy.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import { cypressPassThroughTestsFactory, testChartLegendConfig } from '../../../../../cypress/support/utils';
12
import { complexDataSet, simpleDataSet } from '../../resources/DemoProps.js';
23
import { DonutChart } from './index.js';
3-
import { cypressPassThroughTestsFactory, testChartLegendConfig } from '../../../../../cypress/support/utils';
44

55
const dimension = {
66
accessor: 'name',

packages/charts/src/components/LineChart/LineChart.cy.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { complexDataSet } from '../../resources/DemoProps.js';
2-
import { LineChart } from './index.js';
31
import {
42
cypressPassThroughTestsFactory,
53
testChartLegendConfig,
64
testChartZoomingTool,
75
} from '../../../../../cypress/support/utils';
6+
import { complexDataSet } from '../../resources/DemoProps.js';
7+
import { LineChart } from './index.js';
88

99
const dimensions = [
1010
{

0 commit comments

Comments
 (0)