chore: fix lint issues
This commit is contained in:
@@ -233,7 +233,6 @@ function drawPiece(
|
||||
ctx.fillStyle = 'rgba(255, 255, 255, 0.7)';
|
||||
ctx.strokeStyle = 'rgba(255, 255, 255, 0.7)';
|
||||
ctx.stroke();
|
||||
// oxlint-disable-next-line no-unused-expressions
|
||||
opr === canvasOpr.clip ? ctx.clip() : ctx.fill();
|
||||
ctx.globalCompositeOperation = 'destination-over';
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ import type {
|
||||
} from './types';
|
||||
|
||||
import { computed, useAttrs } from 'vue';
|
||||
// @ts-expect-error: vue-json-viewer does not expose compatible typings for this import path
|
||||
// @ts-expect-error - vue-json-viewer does not expose compatible typings for this import path
|
||||
import VueJsonViewer from 'vue-json-viewer';
|
||||
|
||||
import { $t } from '@vben/locales';
|
||||
|
||||
@@ -82,7 +82,6 @@ const toggleKeydownListener = () => {
|
||||
};
|
||||
|
||||
const toggleOpen = () => {
|
||||
// oxlint-disable-next-line no-unused-expressions
|
||||
open.value ? modalApi.close() : modalApi.open();
|
||||
};
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ const bindProps = computed(() => {
|
||||
|
||||
function toggleTheme(event: MouseEvent) {
|
||||
const isAppearanceTransition =
|
||||
// @ts-expect-error: startViewTransition is not available in the current DOM lib target
|
||||
// @ts-expect-error - startViewTransition is not available in the current DOM lib target
|
||||
document.startViewTransition &&
|
||||
!window.matchMedia('(prefers-reduced-motion: reduce)').matches;
|
||||
if (!isAppearanceTransition || !event) {
|
||||
|
||||
Reference in New Issue
Block a user