diff --git a/.lintstagedrc.js b/.lintstagedrc.js deleted file mode 100644 index 806116817c..0000000000 --- a/.lintstagedrc.js +++ /dev/null @@ -1,4 +0,0 @@ -module.exports = { - "*.{js,ts,tsx}": ["oxlint --fix", "oxfmt --write"], - "*.{css,scss,json,md,html,yml}": ["oxfmt --write"], -}; diff --git a/packages/element/src/linearElementEditor.ts b/packages/element/src/linearElementEditor.ts index e40e4c224b..af6e9bce88 100644 --- a/packages/element/src/linearElementEditor.ts +++ b/packages/element/src/linearElementEditor.ts @@ -1,4 +1,3 @@ -// oxlint-disable typescript/no-misused-spread import { pointCenter, pointFrom, diff --git a/packages/excalidraw/components/App.tsx b/packages/excalidraw/components/App.tsx index 0f2c5abe0e..c9691ffe62 100644 --- a/packages/excalidraw/components/App.tsx +++ b/packages/excalidraw/components/App.tsx @@ -1,4 +1,3 @@ -// oxlint-disable typescript/no-misused-spread import clsx from "clsx"; import throttle from "lodash.throttle"; import React, { useContext } from "react"; diff --git a/packages/excalidraw/fonts/ExcalidrawFontFace.ts b/packages/excalidraw/fonts/ExcalidrawFontFace.ts index 55508dc13d..cccc703aed 100644 --- a/packages/excalidraw/fonts/ExcalidrawFontFace.ts +++ b/packages/excalidraw/fonts/ExcalidrawFontFace.ts @@ -10,9 +10,11 @@ export class ExcalidrawFontFace { private static readonly ASSETS_FALLBACK_URL = `https://esm.sh/${ import.meta.env.PKG_NAME - ? `${import.meta.env.PKG_NAME}@${import.meta.env.PKG_VERSION}` // is provided during package build - : "@excalidraw/excalidraw" - }/dist/prod/`; // fallback to the latest package version (i.e. for app) + ? // is provided during package build + `${import.meta.env.PKG_NAME}@${import.meta.env.PKG_VERSION}` + : // fallback to the latest package version (i.e. for app) + "@excalidraw/excalidraw" + }/dist/prod/`; constructor(family: string, uri: string, descriptors?: FontFaceDescriptors) { this.urls = ExcalidrawFontFace.createUrls(uri);