Skip to content

Commit 5fb2747

Browse files
committed
resolve ESlint
1 parent c4a2b3c commit 5fb2747

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

src/app/components/Action.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/* eslint-disable react/require-default-props */
2+
/* eslint-disable @typescript-eslint/no-explicit-any */
3+
/* eslint-disable react/no-unused-prop-types */
14
import React from 'react';
25
import { changeView, changeSlider } from '../actions/actions';
36

@@ -15,7 +18,7 @@ interface ActionProps {
1518
displayName: string;
1619
componentName: string;
1720
componentData: {actualDuration: number}|undefined;
18-
state?: Record<string,unknown>;
21+
state?: Record<string, unknown>;
1922
viewIndex: number;
2023
handleOnkeyDown: (e: any, i: number) => void;
2124
}

src/app/components/Diff.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
1+
/* eslint-disable max-len */
2+
/* eslint-disable @typescript-eslint/no-explicit-any */
3+
/* eslint-disable @typescript-eslint/ban-types */
4+
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
5+
/* eslint-disable react/require-default-props */
16
import React from 'react';
27
import { diff, formatters } from 'jsondiffpatch';
38
import ReactHtmlParser from 'react-html-parser';
49
import { useStoreContext } from '../store';
510

611
interface DiffProps {
712
snapshot: {state?:Record<string, unknown>};
8-
show?: boolean|undefined;
13+
show?: boolean|undefined;
914
}
1015
/**
1116
* Displays tree showing specific two versions of tree

src/app/containers/MainContainer.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/* eslint-disable @typescript-eslint/ban-types */
2+
/* eslint-disable @typescript-eslint/no-explicit-any */
3+
/* eslint-disable max-len */
14
import React, { useEffect } from 'react';
25
import HeadContainer from './HeadContainer';
36
import ActionContainer from './ActionContainer';
@@ -84,8 +87,7 @@ function MainContainer(): any {
8487
// if viewIndex is -1, then use the sliderIndex instead
8588
const snapshotView = viewIndex === -1 ? snapshots[sliderIndex] : snapshots[viewIndex];
8689
// gabi :: cleannign hierarchy and snapshotView from stateless data
87-
const statelessCleaning = (
88-
obj:{name?:string; componentData?:object; state?:string|any;stateSnaphot?:object; children?:any[];}) => {
90+
const statelessCleaning = (obj:{name?:string; componentData?:object; state?:string|any;stateSnaphot?:object; children?:any[];}) => {
8991
const newObj = { ...obj };
9092
if (newObj.name === 'nameless') {
9193
delete newObj.name;

0 commit comments

Comments
 (0)