Fixed linting issues

pull/3996/head
ioedeveloper 1 year ago
parent 557aaffdad
commit c47869b54c
  1. 6
      libs/remix-ui/editor/src/lib/remix-ui-editor.tsx

@ -20,7 +20,6 @@ import './remix-ui-editor.css'
import {circomLanguageConfig, circomTokensProvider} from './syntaxes/circom'
import {IPosition} from 'monaco-editor'
enum MarkerSeverity {
Hint = 1,
Info = 2,
@ -109,7 +108,7 @@ export type EditorAPIType = {
clearDecorationsByPlugin: (filePath: string, plugin: string, typeOfDecoration: string, registeredDecorations: any, currentDecorations: any) => DecorationsReturn
keepDecorationsFor: (filePath: string, plugin: string, typeOfDecoration: string, registeredDecorations: any, currentDecorations: any) => DecorationsReturn
addErrorMarker: (errors: errorMarker[], from: string) => void
clearErrorMarkers: (sources: string[] | {[fileName: string]: any}, from: string) => void,
clearErrorMarkers: (sources: string[] | {[fileName: string]: any}, from: string) => void
getPositionAt: (offset: number) => monacoTypes.IPosition
}
@ -554,9 +553,8 @@ export const EditorUI = (props: EditorUIProps) => {
return editorRef.current.getOption(43).fontSize
}
props.editorAPI.getPositionAt = (offset: number): IPosition => {
return editorRef.current.getModel().getPositionAt(offset);
return editorRef.current.getModel().getPositionAt(offset)
}
;(window as any).addRemixBreakpoint = (position) => {
// make it available from e2e testing...
const model = editorRef.current.getModel()

Loading…
Cancel
Save