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

Chore: Apply eslint no-unused-vars eslint config and add TypeScript config

This commit is contained in:
Laurent Cozic
2019-09-12 22:16:42 +00:00
parent 0b9e007b46
commit 15a42a3729
90 changed files with 339 additions and 187 deletions

View File

@@ -41,7 +41,7 @@ const urlUtils = require('lib/urlUtils');
import FileViewer from 'react-native-file-viewer';
class NoteScreenComponent extends BaseScreenComponent {
static navigationOptions(options) {
static navigationOptions() {
return { header: null };
}
@@ -358,7 +358,7 @@ class NoteScreenComponent extends BaseScreenComponent {
}
async pickDocument() {
return new Promise((resolve, reject) => {
return new Promise((resolve) => {
DocumentPicker.show({ filetype: [DocumentPickerUtil.allFiles()] }, (error, res) => {
if (error) {
// Also returns an error if the user doesn't pick a file
@@ -388,7 +388,7 @@ class NoteScreenComponent extends BaseScreenComponent {
}
showImagePicker(options) {
return new Promise((resolve, reject) => {
return new Promise((resolve) => {
ImagePicker.launchImageLibrary(options, response => {
resolve(response);
});
@@ -750,7 +750,7 @@ class NoteScreenComponent extends BaseScreenComponent {
if (fieldToFocus === 'body') this.refs.noteBodyTextField.focus();
}
async folderPickerOptions_valueChanged(itemValue, itemIndex) {
async folderPickerOptions_valueChanged(itemValue) {
const note = this.state.note;
if (!note.id) {