mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
Fixed linter errors
This commit is contained in:
parent
204fbec648
commit
463b20013d
@ -616,7 +616,7 @@ const TinyMCE = (props:NoteBodyEditorProps, ref:any) => {
|
||||
.map((a:any) => a.path)
|
||||
).filter((path:string) => !loadedAssetFiles_.includes(path));
|
||||
|
||||
const jsFiles = ['gui/NoteEditor/NoteBody/TinyMCE/content_script.js'].concat(
|
||||
const jsFiles = [].concat(
|
||||
pluginAssets
|
||||
.filter((a:any) => a.mime === 'application/javascript')
|
||||
.map((a:any) => a.path)
|
||||
|
@ -1,5 +0,0 @@
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
const ipcProxySendToHost = (methodName, arg) => {
|
||||
console.info('TinyMCE ipcProxySendToHost', methodName, arg);
|
||||
// parent.postMessage({ target: 'main', name: methodName, args: [ arg ] }, '*');
|
||||
};
|
@ -3,7 +3,7 @@ import { isStringWebLink, replaceBetween } from './utils';
|
||||
export const writeUrlTextHere = 'https://example.com';
|
||||
export const writeTextHereString = 'Write some text here';
|
||||
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
// eslint-disable-next-line no-unused-vars, @typescript-eslint/no-unused-vars
|
||||
export default ({ getState, item, setState }) => {
|
||||
const { selection, text } = getState();
|
||||
let newText;
|
||||
|
@ -20,7 +20,7 @@ export const renderFormatButtons = ({ getState, setState, color }, formats, mark
|
||||
<FlatList
|
||||
data={formats ? formats : Formats}
|
||||
keyboardShouldPersistTaps="always"
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
// eslint-disable-next-line no-unused-vars, @typescript-eslint/no-unused-vars
|
||||
renderItem={({ item, index }) =>
|
||||
markdownButton
|
||||
? markdownButton({ item, getState, setState })
|
||||
|
Loading…
Reference in New Issue
Block a user