1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-06 09:19:22 +02:00

Tools: Apply rule @typescript-eslint/member-delimiter-style

This commit is contained in:
Laurent Cozic
2020-11-12 19:29:22 +00:00
parent 42799b0662
commit 17d835d694
103 changed files with 964 additions and 953 deletions

View File

@@ -324,7 +324,7 @@ function CodeMirror(props: NoteBodyEditorProps, ref: any) {
let cancelled = false;
async function loadScripts() {
const scriptsToLoad: {src: string, id: string, loaded: boolean}[] = [
const scriptsToLoad: {src: string; id: string; loaded: boolean}[] = [
{
src: 'node_modules/codemirror/addon/dialog/dialog.css',
id: 'codemirrorDialogStyle',

View File

@@ -75,18 +75,18 @@ for (let i = 0; i < topLanguages.length; i++) {
}
export interface EditorProps {
value: string,
searchMarkers: any,
mode: string,
style: any,
codeMirrorTheme: any,
readOnly: boolean,
autoMatchBraces: boolean,
keyMap: string,
onChange: any,
onScroll: any,
onEditorContextMenu: any,
onEditorPaste: any,
value: string;
searchMarkers: any;
mode: string;
style: any;
codeMirrorTheme: any;
readOnly: boolean;
autoMatchBraces: boolean;
keyMap: string;
onChange: any;
onScroll: any;
onEditorContextMenu: any;
onEditorPaste: any;
}
function Editor(props: EditorProps, ref: any) {

View File

@@ -9,8 +9,8 @@ import stateToWhenClauseContext from '@joplin/lib/services/commands/stateToWhenC
const { buildStyle } = require('@joplin/lib/theme');
interface ToolbarProps {
themeId: number,
toolbarButtonInfos: ToolbarButtonInfo[],
themeId: number;
toolbarButtonInfos: ToolbarButtonInfo[];
}
function styles_(props: ToolbarProps) {

View File

@@ -34,7 +34,7 @@ export default function useJoplinMode(CodeMirror: any) {
}
return {
startState: function(): { outer: any, openCharacter: string, inner: any } {
startState: function(): { outer: any; openCharacter: string; inner: any } {
return {
outer: CodeMirror.startState(markdownMode),
openCharacter: '',

View File

@@ -109,13 +109,13 @@ function enableTextAreaTab(enable: boolean) {
}
interface TinyMceCommand {
name: string,
value?: any,
ui?: boolean
name: string;
value?: any;
ui?: boolean;
}
interface JoplinCommandToTinyMceCommands {
[key: string]: TinyMceCommand,
[key: string]: TinyMceCommand;
}
const joplinCommandToTinyMceCommands: JoplinCommandToTinyMceCommands = {

View File

@@ -24,7 +24,7 @@ function contextMenuElement(editor: any, x: number, y: number) {
}
interface ContextMenuActionOptions {
current: ContextMenuOptions,
current: ContextMenuOptions;
}
const contextMenuActionOptions: ContextMenuActionOptions = { current: null };

View File

@@ -2,8 +2,8 @@ import { useEffect, useCallback, useRef } from 'react';
import shim from '@joplin/lib/shim';
interface HookDependencies {
editor: any,
onScroll: Function,
editor: any;
onScroll: Function;
}
export default function useScroll(dependencies: HookDependencies) {