Ignore 3rdparty code in eslint, fix small things

This commit is contained in:
garnet420 2019-04-26 12:49:27 -04:00
parent a30f08ca78
commit 934735da98
5 changed files with 8 additions and 5 deletions

2
.eslintignore Normal file
View File

@ -0,0 +1,2 @@
javascripts/lib/*.js
javascripts/DragDropTouch.js

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("select-theme", {
data() {
return {

View File

@ -84,7 +84,7 @@ dev.fixSave = function() {
var fixed = save.replace(/NaN/gi, "10")
var stillToDo = JSON.parse(fixed)
for (var i=0; i<stillToDo.autobuyers.length; i++) stillToDo.autobuyers[i].isOn = false
for (let i=0; i<stillToDo.autobuyers.length; i++) stillToDo.autobuyers[i].isOn = false
console.log(stillToDo)
var save_data = stillToDo
@ -431,11 +431,11 @@ dev.updateTestSave = function() {
if (player.options.testVersion === 24) {
// following logic from autobuyers (before the addition of wall clock time stats)
var speedup = getGameSpeedupFactor([GameSpeedEffect.EC12, GameSpeedEffect.WORMHOLE]);
let speedup = getGameSpeedupFactor([GameSpeedEffect.EC12, GameSpeedEffect.WORMHOLE]);
player.thisInfinityRealTime = Time.thisInfinity.totalSeconds / speedup;
player.thisEternityRealTime = Time.thisEternity.totalSeconds / speedup;
player.thisRealityRealTime = Time.thisReality.totalSeconds / speedup;
for (var i=0; i<10; i++) {
for (let i=0; i<10; i++) {
player.lastTenRuns[i][2] = undefined;
player.lastTenEternities[i][2] = undefined;
player.lastTenRealities[i][3] = undefined;

View File

@ -54,7 +54,7 @@ function onLoad() {
}
if (player.version === undefined) { // value will need to be adjusted when update goes live
for (var i = 0; i < player.autobuyers.length; i++) {
for (let i = 0; i < player.autobuyers.length; i++) {
if (player.autobuyers[i]%1 !== 0) player.infinityPoints = player.infinityPoints + player.autobuyers[i].cost - 1
}
player.autobuyers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]

View File

@ -2,7 +2,6 @@
if (!String.prototype.includes) {
String.prototype.includes = function(search, start) {
'use strict';
if (typeof start !== 'number') {
start = 0;
}