Skip to content

Commit 05bb4d5

Browse files
committed
Disable linting specific lines
1 parent 9be41ae commit 05bb4d5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/AppHistory.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function useAppHistory(): object{
1515
stack.current.splice(index+1);
1616
stack.current.push(location);
1717
idx.current = history.state.idx;
18-
setIndex(index+1);
18+
setIndex(index+1); // eslint-disable-line
1919
}
2020
if(navigationType===NavigationType.Pop){
2121
if(idx.current>history.state.idx){
@@ -30,7 +30,7 @@ function useAppHistory(): object{
3030
stack.current[index] = location;
3131
idx.current = history.state.idx;
3232
}
33-
},[location,navigationType]);
33+
},[location,navigationType]); // eslint-disable-line
3434

3535
function getPrevious(): object[]{
3636
return stack.current.slice(0,index);

0 commit comments

Comments
 (0)