File tree Expand file tree Collapse file tree 5 files changed +77
-221
lines changed
addons/paint/src/renderer Expand file tree Collapse file tree 5 files changed +77
-221
lines changed Original file line number Diff line number Diff line change 11import * as path from 'node:path'
22import { pathToFileURL } from 'node:url'
33import '@excalidraw/excalidraw/index.css'
4- import type { RestoredDataState } from '@excalidraw/excalidraw/dist/excalidraw/data/restore'
5- import type { OrderedExcalidrawElement } from '@excalidraw/excalidraw/dist/excalidraw/element/types'
4+ // import type { RestoredDataState } from '@excalidraw/excalidraw/dist/excalidraw/data/restore'
5+ // import type { OrderedExcalidrawElement } from '@excalidraw/excalidraw/dist/excalidraw/element/types'
6+
7+ // eslint-disable-next-line @typescript-eslint/consistent-type-imports
8+ type RestoredDataState = import ( '@excalidraw/excalidraw/dist/excalidraw/data/restore' ) . RestoredDataState
9+ // eslint-disable-next-line @typescript-eslint/consistent-type-imports
10+ type OrderedExcalidrawElement = import ( '@excalidraw/excalidraw/dist/excalidraw/element/types' ) . OrderedExcalidrawElement
11+ // eslint-disable-next-line @typescript-eslint/consistent-type-imports
12+ type ExcalidrawImperativeAPI = import ( '@excalidraw/excalidraw/dist/excalidraw/types' ) . ExcalidrawImperativeAPI
613
714// ./dist/prod/index.js
815const excalidrawEntryFile = require . resolve ( '@excalidraw/excalidraw' )
916window [ 'EXCALIDRAW_ASSET_PATH' ] = pathToFileURL ( path . dirname ( excalidrawEntryFile ) ) . href
1017
1118export * from '@excalidraw/excalidraw'
1219
13- export type { ExcalidrawImperativeAPI } from '@excalidraw/excalidraw/dist/excalidraw/types'
20+ // export type { ExcalidrawImperativeAPI } from '@excalidraw/excalidraw/dist/excalidraw/types'
21+ export type { ExcalidrawImperativeAPI }
1422
1523export type State = Omit < RestoredDataState , 'elements' > & {
1624 elements : readonly OrderedExcalidrawElement [ ] ,
Original file line number Diff line number Diff line change 11import config from '@cyansalt/eslint-config'
22
33export default config ( {
4+ react : false ,
45 configs : [
56 {
67 ignores : [ '**/*.json' ] ,
@@ -9,6 +10,7 @@ export default config({
910 languageOptions : {
1011 parserOptions : {
1112 project : './tsconfig.tools.json' ,
13+ extraFileExtensions : [ '.vue' ] ,
1214 } ,
1315 } ,
1416 rules : {
You can’t perform that action at this time.
0 commit comments