mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-22 08:50:56 +02:00
build: enable consistent type imports eslint rule (#7992)
* build: enable consistent type imports eslint rule * change to warn * fix the warning in example and excalidraw-app * fix packages * enable type annotations and throw error for the rule
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import React from "react";
|
||||
import {
|
||||
import type React from "react";
|
||||
import type {
|
||||
PointerType,
|
||||
ExcalidrawLinearElement,
|
||||
NonDeletedExcalidrawElement,
|
||||
@@ -22,25 +22,25 @@ import {
|
||||
ExcalidrawIframeLikeElement,
|
||||
OrderedExcalidrawElement,
|
||||
} from "./element/types";
|
||||
import { Action } from "./actions/types";
|
||||
import { Point as RoughPoint } from "roughjs/bin/geometry";
|
||||
import { LinearElementEditor } from "./element/linearElementEditor";
|
||||
import { SuggestedBinding } from "./element/binding";
|
||||
import { ImportedDataState } from "./data/types";
|
||||
import type { Action } from "./actions/types";
|
||||
import type { Point as RoughPoint } from "roughjs/bin/geometry";
|
||||
import type { LinearElementEditor } from "./element/linearElementEditor";
|
||||
import type { SuggestedBinding } from "./element/binding";
|
||||
import type { ImportedDataState } from "./data/types";
|
||||
import type App from "./components/App";
|
||||
import type { throttleRAF } from "./utils";
|
||||
import { Spreadsheet } from "./charts";
|
||||
import { Language } from "./i18n";
|
||||
import { ClipboardData } from "./clipboard";
|
||||
import { isOverScrollBars } from "./scene/scrollbars";
|
||||
import { MaybeTransformHandleType } from "./element/transformHandles";
|
||||
import Library from "./data/library";
|
||||
import type { Spreadsheet } from "./charts";
|
||||
import type { Language } from "./i18n";
|
||||
import type { ClipboardData } from "./clipboard";
|
||||
import type { isOverScrollBars } from "./scene/scrollbars";
|
||||
import type { MaybeTransformHandleType } from "./element/transformHandles";
|
||||
import type Library from "./data/library";
|
||||
import type { FileSystemHandle } from "./data/filesystem";
|
||||
import type { IMAGE_MIME_TYPES, MIME_TYPES } from "./constants";
|
||||
import { ContextMenuItems } from "./components/ContextMenu";
|
||||
import { SnapLine } from "./snapping";
|
||||
import { Merge, MaybePromise, ValueOf } from "./utility-types";
|
||||
import { StoreActionType } from "./store";
|
||||
import type { ContextMenuItems } from "./components/ContextMenu";
|
||||
import type { SnapLine } from "./snapping";
|
||||
import type { Merge, MaybePromise, ValueOf } from "./utility-types";
|
||||
import type { StoreActionType } from "./store";
|
||||
|
||||
export type Point = Readonly<RoughPoint>;
|
||||
|
||||
|
Reference in New Issue
Block a user