Migrate to oxlint + oxfmt

This commit is contained in:
schroda
2026-03-10 22:28:19 +01:00
parent 98622ad6cd
commit 5dda4304d9
40 changed files with 1232 additions and 1315 deletions

View File

@@ -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 */
});
}

View File

@@ -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;
}

View File

@@ -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'];

View File

@@ -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],