1
0
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:
Laurent Cozic 2020-05-05 19:03:13 +01:00
parent 204fbec648
commit 463b20013d
4 changed files with 3 additions and 8 deletions

View File

@ -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)

View File

@ -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 ] }, '*');
};

View File

@ -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;

View File

@ -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 })