mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04: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:
parent
c1926f33bb
commit
1ed53b153c
240 changed files with 635 additions and 611 deletions
|
@ -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>;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue