js: fix eslint warnings.
This commit is contained in:
@@ -31,7 +31,7 @@ rules:
|
||||
no-lone-blocks: error
|
||||
no-lonely-if: error
|
||||
no-mixed-operators: error
|
||||
no-new: warn
|
||||
#no-new: warn
|
||||
no-new-wrappers: error
|
||||
no-return-assign: error
|
||||
no-self-compare: error
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import CurrentUser from './current_user'
|
||||
|
||||
let Autocomplete = {};
|
||||
|
||||
/* eslint-disable */
|
||||
|
||||
@@ -42,8 +42,6 @@ Post.initialize_all = function() {
|
||||
this.initialize_edit_dialog();
|
||||
}
|
||||
|
||||
var $fields_multiple = $('[data-autocomplete="tag-edit"]');
|
||||
|
||||
$(window).on('danbooru:initialize_saved_seraches', () => {
|
||||
Post.initialize_saved_searches();
|
||||
});
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import Shortcuts from './shortcuts.js';
|
||||
import Utility from './utility.js';
|
||||
import Dropzone from 'dropzone';
|
||||
import SparkMD5 from 'spark-md5';
|
||||
|
||||
@@ -44,8 +42,7 @@ Upload.validate_upload = function (e) {
|
||||
var error_messages = [];
|
||||
if (($("#upload_file").val() === undefined) && !/^https?:\/\/.+/i.test($("#upload_source").val()) && $("#upload_md5_confirmation").val() === "") {
|
||||
error_messages.push("Must choose file or specify source");
|
||||
}
|
||||
else if ($(".dz-progress:visible").length) {
|
||||
} else if ($(".dz-progress:visible").length) {
|
||||
error_messages.push("File has not finished uploading yet")
|
||||
}
|
||||
if (!$("#upload_rating_s").prop("checked") && !$("#upload_rating_q").prop("checked") && !$("#upload_rating_e").prop("checked") &&
|
||||
|
||||
Reference in New Issue
Block a user