From 934735da987f6149d92be7b301810a6127933862 Mon Sep 17 00:00:00 2001 From: garnet420 <795869+garnet420@users.noreply.github.com> Date: Fri, 26 Apr 2019 12:49:27 -0400 Subject: [PATCH] Ignore 3rdparty code in eslint, fix small things --- .eslintignore | 2 ++ javascripts/components/options/select-theme.js | 2 ++ javascripts/core/devtools.js | 6 +++--- javascripts/core/load_functions.js | 2 +- javascripts/core/polyfill.js | 1 - 5 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 .eslintignore diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 000000000..f3e3f7b08 --- /dev/null +++ b/.eslintignore @@ -0,0 +1,2 @@ +javascripts/lib/*.js +javascripts/DragDropTouch.js \ No newline at end of file diff --git a/javascripts/components/options/select-theme.js b/javascripts/components/options/select-theme.js index d317add8c..6c8739e74 100644 --- a/javascripts/components/options/select-theme.js +++ b/javascripts/components/options/select-theme.js @@ -1,3 +1,5 @@ +"use strict"; + Vue.component("select-theme", { data() { return { diff --git a/javascripts/core/devtools.js b/javascripts/core/devtools.js index 31432ccc3..6c220ff23 100644 --- a/javascripts/core/devtools.js +++ b/javascripts/core/devtools.js @@ -84,7 +84,7 @@ dev.fixSave = function() { var fixed = save.replace(/NaN/gi, "10") var stillToDo = JSON.parse(fixed) - for (var i=0; i