Migrate to oxlint + oxfmt
This commit is contained in:
@@ -120,7 +120,7 @@ export class ReaderTapZoneService {
|
||||
|
||||
context.beginPath();
|
||||
|
||||
/* eslint-disable no-param-reassign */
|
||||
/* oxlint-disable no-param-reassign */
|
||||
context.rect(x, y, width, height);
|
||||
context.fillStyle = color;
|
||||
context.strokeStyle = color;
|
||||
@@ -141,7 +141,7 @@ export class ReaderTapZoneService {
|
||||
context.lineWidth = 1;
|
||||
context.fillStyle = 'white';
|
||||
context.fillText(text, rectCenterX, rectCenterY);
|
||||
/* eslint-enable no-param-reassign */
|
||||
/* oxlint-enable no-param-reassign */
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -162,7 +162,7 @@ const BaseReaderChapterViewer = ({
|
||||
|
||||
isCurrentChapterRef.current = isCurrentChapter;
|
||||
if (isCurrentChapter) {
|
||||
// eslint-disable-next-line no-param-reassign
|
||||
// oxlint-disable-next-line no-param-reassign
|
||||
globalImageRefs.current = imageRefs.current;
|
||||
}
|
||||
|
||||
|
||||
@@ -86,7 +86,6 @@ const BaseReaderTransitionPage = ({
|
||||
handleBack,
|
||||
}: Pick<NavbarContextType, 'readerNavBarWidth'> & {
|
||||
// gets used in the "source props creators" of the "withPropsFrom" call
|
||||
// eslint-disable-next-line react/no-unused-prop-types
|
||||
chapterId: ChapterIdInfo['id'];
|
||||
currentChapterName?: ChapterType['name'];
|
||||
currentChapterScanlator?: ChapterType['scanlator'];
|
||||
|
||||
@@ -87,7 +87,7 @@ const BaseBasePager = ({
|
||||
|
||||
const setRef = useCallback(
|
||||
(pagesIndex: number, element: HTMLElement | null) => {
|
||||
// eslint-disable-next-line no-param-reassign
|
||||
// oxlint-disable-next-line no-param-reassign
|
||||
imageRefs.current[pagesIndex] = element;
|
||||
},
|
||||
[imageRefs],
|
||||
|
||||
Reference in New Issue
Block a user