Update dependency eslint-plugin-import to v2.25.2 (#1555)

* Update dependency eslint-plugin-import to v2.25.2

Signed-off-by: Renovate Bot <bot@renovateapp.com>
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>

* Make type imports more explicit

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>

* Enforce use of type imports

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
renovate[bot] 2021-10-17 18:45:58 +02:00 committed by GitHub
parent fc3a3fa1a9
commit 2abe40ef1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
264 changed files with 567 additions and 504 deletions

View file

@ -5,8 +5,8 @@
*/
import { useEffect, useRef } from 'react'
import { Editor } from 'codemirror'
import { ScrollState } from '../../synced-scroll/scroll-props'
import type { Editor } from 'codemirror'
import type { ScrollState } from '../../synced-scroll/scroll-props'
/**
* Monitors the given scroll state and scrolls the editor to the state if changed.

View file

@ -4,7 +4,7 @@
* SPDX-License-Identifier: AGPL-3.0-only
*/
import { EditorConfiguration } from 'codemirror'
import type { EditorConfiguration } from 'codemirror'
import { useMemo } from 'react'
import { defaultKeyMap } from '../key-map'
import { useApplicationState } from '../../../../hooks/common/use-application-state'

View file

@ -5,9 +5,9 @@
*/
import { useCallback } from 'react'
import { Editor } from 'codemirror'
import type { Editor } from 'codemirror'
import { handleUpload } from '../upload-handler'
import { DomEvent } from 'react-codemirror2'
import type { DomEvent } from 'react-codemirror2'
interface DropEvent {
pageX: number

View file

@ -5,10 +5,11 @@
*/
import { useCallback } from 'react'
import { Editor } from 'codemirror'
import { handleFilePaste, handleTablePaste, PasteEvent } from '../tool-bar/utils/pasteHandlers'
import type { Editor } from 'codemirror'
import type { PasteEvent } from '../tool-bar/utils/pasteHandlers'
import { handleFilePaste, handleTablePaste } from '../tool-bar/utils/pasteHandlers'
import { useApplicationState } from '../../../../hooks/common/use-application-state'
import { DomEvent } from 'react-codemirror2'
import type { DomEvent } from 'react-codemirror2'
/**
* Creates a callback that handles the table or file paste action in code mirror.

View file

@ -4,10 +4,10 @@
* SPDX-License-Identifier: AGPL-3.0-only
*/
import { DomEvent } from 'react-codemirror2'
import type { DomEvent } from 'react-codemirror2'
import { useCallback, useEffect, useState } from 'react'
import { Editor, ScrollInfo } from 'codemirror'
import { ScrollState } from '../../synced-scroll/scroll-props'
import type { Editor, ScrollInfo } from 'codemirror'
import type { ScrollState } from '../../synced-scroll/scroll-props'
/**
* Creates a callback for the scroll binding of the code mirror editor.